home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIDialogs.xh < prev    next >
Text File  |  1996-05-01  |  123KB  |  4,091 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIDialogs.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIDialog_xh
  11. #define SOM_HIDialog_xh
  12.  
  13. class HIDialog;
  14.  
  15. #define HIDialog_MajorVersion 0
  16. #define HIDialog_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <Types.h>
  22. #include <HIDialogTypes.h>
  23.  
  24. /* C++ SOM defs */
  25. #include <somcls.xh>
  26. #include <somcm.xh>
  27.  
  28. /* C++ parent defs */
  29. #ifndef SOM_HIRootPanel_xh
  30. #include <HIEmbeddingPanels.xh>
  31. #endif
  32.  
  33. #ifndef HIDialog_API
  34. #define HIDialog_API
  35. /*
  36.  * -- The Class API
  37.  */
  38.  
  39. /*
  40.  * Start of user-defined types:
  41.  */
  42. class SOMClass;
  43. class SOMObject;
  44. class HIWindow;
  45. class HIEmbeddingPanel;
  46. class HIPushButton;
  47.  
  48. /*
  49.  * End of user-defined types.
  50.  */
  51.  
  52. #ifdef OLDIBMSOMAPISUPPORT
  53. #define HIDialogCClassData HIDialogClassData
  54. #define HIDialogNewClass(major,minor) somNewVersionedClassReference(HIDialog,major,minor)
  55. #endif
  56.  
  57. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  58. #define HIDialogMetaClass SOMClass
  59.  
  60. #if PRAGMA_ALIGN_SUPPORTED
  61. #  pragma options align=power
  62. #endif
  63.  
  64. /* The API to the HIDialog class object, and the methods it introduces. */
  65. SOMEXTERN struct HIDialogClassDataStructure {
  66. #ifdef OLDIBMSOMAPISUPPORT
  67.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  68. #else
  69.     long zero;
  70. #endif
  71.     somStaticClassInfo *sci;
  72.     somDToken        instanceDataToken;
  73.     long reserved [3];
  74.     somMToken InitDialog;
  75.     somMToken GetDefaultPushButton;
  76.     somMToken SetDefaultPushButton;
  77.     somMToken GetCancelPushButton;
  78.     somMToken SetCancelPushButton;
  79.     somMToken SetDismissingSubPanel;
  80.     somMToken IsDismissingSubPanel;
  81.     somMToken GetNextUserInputFocussedSubPanel;
  82.     somMToken Dismiss;
  83. } SOMDLINK HIDialogClassData;
  84.  
  85. #if PRAGMA_ALIGN_SUPPORTED
  86. #  pragma options align=reset
  87. #endif
  88.  
  89. #if !defined(HIDialog_Class_Source) && !defined(SOM_Module_hidialogs_Source)
  90. #if PRAGMA_IMPORT_SUPPORTED
  91. #pragma import list HIDialogClassData
  92. #endif
  93. #endif
  94.  
  95.  
  96. /*
  97.  * -- Typedefs for HIDialog Method Procedures
  98.  */
  99. SOMEXTERN {
  100. typedef OSStatus   (* SOMLINK somTD_HIDialog_InitDialog)(HIDialog *somSelf, Environment *ev,
  101.         RefLabel* identifier,
  102.         HIWindow* window);
  103. typedef OSStatus   (* SOMLINK somTD_HIDialog_SetDefaultPushButton)(HIDialog *somSelf, Environment *ev,
  104.         HIPushButton* defaultSubPanel,
  105.         boolean isDismissing);
  106. typedef HIPushButton*   (* SOMLINK somTD_HIDialog_GetDefaultPushButton)(HIDialog *somSelf, Environment *ev);
  107. typedef OSStatus   (* SOMLINK somTD_HIDialog_SetCancelPushButton)(HIDialog *somSelf, Environment *ev,
  108.         HIPushButton* cancelSubPanel,
  109.         boolean isDismissing);
  110. typedef HIPushButton*   (* SOMLINK somTD_HIDialog_GetCancelPushButton)(HIDialog *somSelf, Environment *ev);
  111. typedef OSStatus   (* SOMLINK somTD_HIDialog_SetDismissingSubPanel)(HIDialog *somSelf, Environment *ev,
  112.         HIPushButton* subPanel,
  113.         boolean isDismissing);
  114. typedef boolean   (* SOMLINK somTD_HIDialog_IsDismissingSubPanel)(HIDialog *somSelf, Environment *ev,
  115.         HIPushButton* subPanel);
  116. typedef HIPanel*   (* SOMLINK somTD_HIDialog_GetNextUserInputFocussedSubPanel)(HIDialog *somSelf, Environment *ev,
  117.         boolean goingBackwards);
  118. typedef boolean   (* SOMLINK somTD_HIDialog_Dismiss)(HIDialog *somSelf, Environment *ev);
  119.  
  120. /*
  121.  * -- Typedefs for Inherited Methods
  122.  */
  123. typedef OSStatus   (* SOMLINK somTD_HIDialog_InitRootPanel)(HIDialog *somSelf, Environment *ev,
  124.         RefLabel* identifier,
  125.         HIWindow* window);
  126. typedef void   (* SOMLINK somTD_HIDialog_AdjustAccumulatedEraseRgn)(HIDialog *somSelf, Environment *ev,
  127.         HIAccumulatorOperation accumulatorOperation,
  128.         Rect* oldRectangle,
  129.         Rect* newRectangle);
  130. typedef void   (* SOMLINK somTD_HIDialog_EraseAccumulatedEraseRgn)(HIDialog *somSelf, Environment *ev,
  131.         CGrafPtr targetPort);
  132. typedef ItemCount   (* SOMLINK somTD_HIDialog_GetSubPanelCount)(HIDialog *somSelf, Environment *ev);
  133. typedef HIPanel*   (* SOMLINK somTD_HIDialog_GetLastSelectedSubPanel)(HIDialog *somSelf, Environment *ev);
  134. typedef OSStatus   (* SOMLINK somTD_HIDialog_InitEmbeddingPanel)(HIDialog *somSelf, Environment *ev,
  135.         RefLabel* identifier,
  136.         HIWindow* window,
  137.         Rect* bounds);
  138. typedef OSStatus   (* SOMLINK somTD_HIDialog_AddSubPanel)(HIDialog *somSelf, Environment *ev,
  139.         HIPanel* subPanel,
  140.         HISubPanelIndex where,
  141.         HIAdoptionFlags adoptionFlags,
  142.         HIFrameBindingFlags frameBindingFlags);
  143. typedef OSStatus   (* SOMLINK somTD_HIDialog_RemoveSubPanel)(HIDialog *somSelf, Environment *ev,
  144.         HIPanel* subPanel);
  145. typedef HIPanel*   (* SOMLINK somTD_HIDialog_GetSubPanel)(HIDialog *somSelf, Environment *ev,
  146.         HISubPanelIndex subPanelIndex);
  147. typedef HIPanel*   (* SOMLINK somTD_HIDialog_GetUserInputFocusSubPanel)(HIDialog *somSelf, Environment *ev);
  148. typedef OSStatus   (* SOMLINK somTD_HIDialog_SetUserInputFocusSubPanel)(HIDialog *somSelf, Environment *ev,
  149.         HIPanel* subPanel);
  150. typedef HISubPanelIndex   (* SOMLINK somTD_HIDialog_GetSubPanelIndex)(HIDialog *somSelf, Environment *ev,
  151.         HIPanel* subPanel);
  152. typedef OSStatus   (* SOMLINK somTD_HIDialog_GetSubPanelsFromRefLabel)(HIDialog *somSelf, Environment *ev,
  153.         RefLabel* identifier,
  154.         boolean deep,
  155.         ItemCount requestedSubPanels,
  156.         ItemCount* totalSubPanels,
  157.         HIPanel** thePanels);
  158. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIDialog_GetEmbeddingParent)(HIDialog *somSelf, Environment *ev);
  159. typedef OSStatus   (* SOMLINK somTD_HIDialog_InitPanel)(HIDialog *somSelf, Environment *ev,
  160.         RefLabel* identifier,
  161.         HIWindow* window,
  162.         Rect* bounds);
  163. typedef OSStatus   (* SOMLINK somTD_HIDialog_RegisterInterestInAppleEvent)(HIDialog *somSelf, Environment *ev,
  164.         AEHandlerTableRef table,
  165.         AEEventClass eventClass,
  166.         AEEventID eventID,
  167.         HIEventRoutingType eventRouting);
  168. typedef boolean   (* SOMLINK somTD_HIDialog_HasValidContent)(HIDialog *somSelf, Environment *ev);
  169. typedef OSStatus   (* SOMLINK somTD_HIDialog_GetDeepCollectionItemData)(HIDialog *somSelf, Environment *ev,
  170.         CollectionTag tag,
  171.         SInt32 id,
  172.         ByteCount sizeAllowed,
  173.         ByteCount* sizeReturned,
  174.         void* itemData);
  175. typedef HIWindow*   (* SOMLINK somTD_HIDialog_GetWindow)(HIDialog *somSelf, Environment *ev);
  176. typedef CGrafPtr   (* SOMLINK somTD_HIDialog_GetPort)(HIDialog *somSelf, Environment *ev);
  177. typedef void   (* SOMLINK somTD_HIDialog_GetRefLabel)(HIDialog *somSelf, Environment *ev,
  178.         RefLabel* identifier);
  179. typedef Collection   (* SOMLINK somTD_HIDialog_GetCollection)(HIDialog *somSelf, Environment *ev);
  180. typedef OSStatus   (* SOMLINK somTD_HIDialog_Init)(HIDialog *somSelf, Environment *ev,
  181.         RefLabel* identifier,
  182.         Rect* boundingRect);
  183. typedef void   (* SOMLINK somTD_HIDialog_Terminate)(HIDialog *somSelf, Environment *ev);
  184. typedef HIObject*   (* SOMLINK somTD_HIDialog_Clone)(HIDialog *somSelf, Environment *ev);
  185. typedef void   (* SOMLINK somTD_HIDialog_Release)(HIDialog *somSelf, Environment *ev);
  186. typedef ItemCount   (* SOMLINK somTD_HIDialog_GetOwnerCount)(HIDialog *somSelf, Environment *ev);
  187. typedef OSStatus   (* SOMLINK somTD_HIDialog_InitFromAERecord)(HIDialog *somSelf, Environment *ev,
  188.         AESubDesc* baseInitializerData,
  189.         AESubDesc* initializerDataForClass,
  190.         HIAERecordDataFormat dataFormat);
  191. typedef OSStatus   (* SOMLINK somTD_HIDialog_WriteToAERecord)(HIDialog *somSelf, Environment *ev,
  192.         AERecord* dataForSubclass,
  193.         AERecord* objectData,
  194.         HIAERecordDataFormat dataFormat);
  195. typedef void   (* SOMLINK somTD_HIDialog_CalculateOptimalSize)(HIDialog *somSelf, Environment *ev,
  196.         SInt16* optimalWidth,
  197.         SInt16* optimalHeight);
  198. typedef void   (* SOMLINK somTD_HIDialog_GetBoundingRect)(HIDialog *somSelf, Environment *ev,
  199.         HICoordinateSystem coordinate,
  200.         Rect* boundingRect);
  201. typedef void   (* SOMLINK somTD_HIDialog_SetBoundingRect)(HIDialog *somSelf, Environment *ev,
  202.         HICoordinateSystem coordinate,
  203.         Rect* newBoundingRect);
  204. typedef void   (* SOMLINK somTD_HIDialog_SetPosition)(HIDialog *somSelf, Environment *ev,
  205.         HICoordinateSystem coordinate,
  206.         Point* newPosition);
  207. typedef void   (* SOMLINK somTD_HIDialog_SetSize)(HIDialog *somSelf, Environment *ev,
  208.         SInt16 width,
  209.         SInt16 height);
  210. typedef void   (* SOMLINK somTD_HIDialog_GetUpdateRect)(HIDialog *somSelf, Environment *ev,
  211.         HICoordinateSystem coordinate,
  212.         Rect* updateRect);
  213. typedef void   (* SOMLINK somTD_HIDialog_Enable)(HIDialog *somSelf, Environment *ev);
  214. typedef void   (* SOMLINK somTD_HIDialog_Disable)(HIDialog *somSelf, Environment *ev);
  215. typedef boolean   (* SOMLINK somTD_HIDialog_IsEnabled)(HIDialog *somSelf, Environment *ev);
  216. typedef void   (* SOMLINK somTD_HIDialog_Show)(HIDialog *somSelf, Environment *ev);
  217. typedef void   (* SOMLINK somTD_HIDialog_Hide)(HIDialog *somSelf, Environment *ev);
  218. typedef boolean   (* SOMLINK somTD_HIDialog_IsVisible)(HIDialog *somSelf, Environment *ev);
  219. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleAppleEvent)(HIDialog *somSelf, Environment *ev,
  220.         AEEventClass eventClass,
  221.         AEEventID eventID,
  222.         AppleEvent* theEvent,
  223.         AppleEvent* reply,
  224.         AEHandlerTableRef handlerTableRef);
  225. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleActivate)(HIDialog *somSelf, Environment *ev,
  226.         AppleEvent* theEvent,
  227.         AppleEvent* reply,
  228.         AEHandlerTableRef handlerTableRef);
  229. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleDeactivate)(HIDialog *somSelf, Environment *ev,
  230.         AppleEvent* theEvent,
  231.         AppleEvent* reply,
  232.         AEHandlerTableRef handlerTableRef);
  233. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleNavigation)(HIDialog *somSelf, Environment *ev,
  234.         SInt8 key,
  235.         SInt8 keyCode,
  236.         EventModifiers modifiers,
  237.         AppleEvent* theEvent,
  238.         AppleEvent* reply,
  239.         AEHandlerTableRef handlerTableRef);
  240. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleMouseDownInContent)(HIDialog *somSelf, Environment *ev,
  241.         Point* portLocalWhere,
  242.         EventModifiers modifiers,
  243.         AppleEvent* theEvent,
  244.         AppleEvent* reply,
  245.         AEHandlerTableRef handlerTableRef);
  246. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleMouseMovedInContent)(HIDialog *somSelf, Environment *ev,
  247.         Point* portLocalWhere,
  248.         EventModifiers modifiers,
  249.         AppleEvent* theEvent,
  250.         AppleEvent* reply,
  251.         AEHandlerTableRef handlerTableRef);
  252. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleMouseStoppedMovingInContent)(HIDialog *somSelf, Environment *ev,
  253.         Point* portLocalWhere,
  254.         EventModifiers modifiers,
  255.         AppleEvent* theEvent,
  256.         AppleEvent* reply,
  257.         AEHandlerTableRef handlerTableRef);
  258. typedef OSStatus   (* SOMLINK somTD_HIDialog_HandleMouseUpInContent)(HIDialog *somSelf, Environment *ev,
  259.         Point* portLocalWhere,
  260.         EventModifiers modifiers,
  261.         AppleEvent* theEvent,
  262.         AppleEvent* reply,
  263.         AEHandlerTableRef handlerTableRef);
  264. typedef void   (* SOMLINK somTD_HIDialog_TakeUserInputFocus)(HIDialog *somSelf, Environment *ev);
  265. typedef void   (* SOMLINK somTD_HIDialog_ReleaseUserInputFocus)(HIDialog *somSelf, Environment *ev);
  266. typedef boolean   (* SOMLINK somTD_HIDialog_HasUserInputFocus)(HIDialog *somSelf, Environment *ev);
  267. typedef boolean   (* SOMLINK somTD_HIDialog_CanReleaseUserInputFocus)(HIDialog *somSelf, Environment *ev);
  268. typedef void   (* SOMLINK somTD_HIDialog_SetUserInputFocusFlags)(HIDialog *somSelf, Environment *ev,
  269.         HIUserInputFocusFlags flags);
  270. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIDialog_GetUserInputFocusFlags)(HIDialog *somSelf, Environment *ev);
  271. typedef OSStatus   (* SOMLINK somTD_HIDialog_SetTitle)(HIDialog *somSelf, Environment *ev,
  272.         ConstHIImageRef title,
  273.         HIAdoptionFlags disposalAdoptionFlags);
  274. typedef OSStatus   (* SOMLINK somTD_HIDialog_GetTitle)(HIDialog *somSelf, Environment *ev,
  275.         HIImageRef* title);
  276. typedef void   (* SOMLINK somTD_HIDialog_Draw)(HIDialog *somSelf, Environment *ev,
  277.         CGrafPtr whichPort,
  278.         RgnHandle drawRgn);
  279. typedef void   (* SOMLINK somTD_HIDialog_Erase)(HIDialog *somSelf, Environment *ev,
  280.         CGrafPtr whichPort,
  281.         RgnHandle eraseRgn);
  282. typedef void   (* SOMLINK somTD_HIDialog_Invalidate)(HIDialog *somSelf, Environment *ev);
  283. typedef HIDrawingMode   (* SOMLINK somTD_HIDialog_GetDrawingMode)(HIDialog *somSelf, Environment *ev);
  284. typedef void   (* SOMLINK somTD_HIDialog_SetDrawingMode)(HIDialog *somSelf, Environment *ev,
  285.         HIDrawingMode drawingMode);
  286. typedef void   (* SOMLINK somTD_HIDialog_SetBackgroundPattern)(HIDialog *somSelf, Environment *ev,
  287.         PixPatHandle backgroundPattern);
  288. typedef PixPatHandle   (* SOMLINK somTD_HIDialog_GetBackgroundPattern)(HIDialog *somSelf, Environment *ev);
  289. typedef void   (* SOMLINK somTD_HIDialog_Cut)(HIDialog *somSelf, Environment *ev);
  290. typedef void   (* SOMLINK somTD_HIDialog_Copy)(HIDialog *somSelf, Environment *ev);
  291. typedef void   (* SOMLINK somTD_HIDialog_Paste)(HIDialog *somSelf, Environment *ev);
  292. typedef void   (* SOMLINK somTD_HIDialog_Clear)(HIDialog *somSelf, Environment *ev);
  293. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIDialog_GetClipboardSupportFlags)(HIDialog *somSelf, Environment *ev);
  294. typedef OSStatus   (* SOMLINK somTD_HIDialog_AddStateChangeCallback)(HIDialog *somSelf, Environment *ev,
  295.         HIStateChangeCallbackProcPtr changedStateCallback,
  296.         HIStateChangeCallbackRef* newCallbackRef);
  297. typedef OSStatus   (* SOMLINK somTD_HIDialog_RemoveStateChangeCallback)(HIDialog *somSelf, Environment *ev,
  298.         HIStateChangeCallbackRef callbackRefToRemove);
  299. typedef OSStatus   (* SOMLINK somTD_HIDialog_GetHIObjectFromRefLabel)(Environment *ev,
  300.         RefLabel* identifier,
  301.         ItemCount requestedObjects,
  302.         ItemCount* totalObjects,
  303.         HIObject** theObjects);
  304. typedef OSStatus   (* SOMLINK somTD_HIDialog_GetNewHIObject)(Environment *ev,
  305.         AESubDesc* objectInitializer,
  306.         HIObject** newObject);
  307. typedef OSStatus   (* SOMLINK somTD_HIDialog_GetNewHIObjectFromResource)(Environment *ev,
  308.         ResID objectInitializerResourceID,
  309.         HIObject** newObject);
  310. typedef void   (* SOMLINK somTD_HIDialog_DrawContent)(HIDialog *somSelf, Environment *ev,
  311.         CGrafPtr whichPort,
  312.         RgnHandle drawRgn);
  313. typedef void   (* SOMLINK somTD_HIDialog_EraseContent)(HIDialog *somSelf, Environment *ev,
  314.         CGrafPtr whichPort,
  315.         RgnHandle regionToErase);
  316. typedef void   (* SOMLINK somTD_HIDialog_TranslatePoint)(HIDialog *somSelf, Environment *ev,
  317.         HICoordinateSystem translateFrom,
  318.         HICoordinateSystem translateTo,
  319.         Point* sourcePoint,
  320.         Point* translatedPoint);
  321. typedef void   (* SOMLINK somTD_HIDialog_TranslateRect)(HIDialog *somSelf, Environment *ev,
  322.         HICoordinateSystem translateFrom,
  323.         HICoordinateSystem translateTo,
  324.         Rect* sourceRect,
  325.         Rect* translatedRect);
  326. typedef void   (* SOMLINK somTD_HIDialog_StateChanged)(HIDialog *somSelf, Environment *ev,
  327.         HIStateChangeCodeCreator selectorCreator,
  328.         HIStateChangeCode changedCode);
  329. typedef void   (* SOMLINK somTD_HIDialog_SetClipboardSupportFlags)(HIDialog *somSelf, Environment *ev,
  330.         HIClipboardSupportFlags flags);
  331. typedef OSStatus   (* SOMLINK somTD_HIDialog_Verify)(HIDialog *somSelf, Environment *ev);
  332. typedef void   (* SOMLINK somTD_HIDialog_somInit)(HIDialog *somSelf);
  333. typedef void   (* SOMLINK somTD_HIDialog_somUninit)(HIDialog *somSelf);
  334. typedef SOMObject*   (* SOMLINK somTD_HIDialog_somDuplicateReference)(HIDialog *somSelf);
  335. typedef boolean   (* SOMLINK somTD_HIDialog_somCompareReference)(HIDialog *somSelf,
  336.         SOMObject* anObject);
  337. typedef SOMObject*   (* SOMLINK somTD_HIDialog_somRelease)(HIDialog *somSelf);
  338. typedef void   (* SOMLINK somTD_HIDialog_somFree)(HIDialog *somSelf);
  339. typedef boolean   (* SOMLINK somTD_HIDialog_somCanDelete)(HIDialog *somSelf);
  340. typedef SOMClass*   (* SOMLINK somTD_HIDialog_somGetClass)(HIDialog *somSelf);
  341. typedef corbastring   (* SOMLINK somTD_HIDialog_somGetClassName)(HIDialog *somSelf);
  342. typedef long   (* SOMLINK somTD_HIDialog_somGetSize)(HIDialog *somSelf);
  343. typedef boolean   (* SOMLINK somTD_HIDialog_somIsA)(HIDialog *somSelf,
  344.         SOMClass* aClassObj);
  345. typedef boolean   (* SOMLINK somTD_HIDialog_somRespondsTo)(HIDialog *somSelf,
  346.         somId mId);
  347. typedef boolean   (* SOMLINK somTD_HIDialog_somIsInstanceOf)(HIDialog *somSelf,
  348.         SOMClass* aClassObj);
  349. typedef boolean   (* SOMLINK somTD_HIDialog_somDispatch)(HIDialog *somSelf,
  350.         somToken* retValue,
  351.         somId methodId,
  352.         va_list ap);
  353. typedef boolean   (* SOMLINK somTD_HIDialog_somClassDispatch)(HIDialog *somSelf,
  354.         SOMClass* clsObj,
  355.         somToken* retValue,
  356.         somId methodId,
  357.         va_list ap);
  358. typedef boolean   (* SOMLINK somTD_HIDialog_somCastObj)(HIDialog *somSelf,
  359.         SOMClass* cls);
  360. typedef boolean   (* SOMLINK somTD_HIDialog_somResetObj)(HIDialog *somSelf);
  361. typedef SOMObject*   (* SOMLINK somTD_HIDialog_somPrintSelf)(HIDialog *somSelf);
  362. typedef void   (* SOMLINK somTD_HIDialog_somDumpSelf)(HIDialog *somSelf,
  363.         long level);
  364. typedef void   (* SOMLINK somTD_HIDialog_somDumpSelfInt)(HIDialog *somSelf,
  365.         long level);
  366. }
  367.  
  368. #endif /* HIDialog_API */
  369.  
  370.  
  371. /*
  372.  * -- This emitter treats Method Tokens as Thunks by default.
  373.  * -- Use the sc modifier "nothunks" to change this default
  374.  */
  375. #undef somresolve_
  376. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  377.  
  378. /*
  379.  * -- The C++ Wrapper Class for HIDialog
  380.  */
  381. class HIDialog : public HIRootPanel
  382. {
  383. public:
  384.  
  385. // HIDialog::new registers use of the class object, and then uses somNew
  386. // to allocate memory and load the object method table pointer. 
  387. void *operator new(size_t size)
  388. {
  389.     SOM_IgnoreWarning(size);
  390.     // Allocate memory using the default allocator for HIDialog, and
  391.     // clear mem & set method table pointer, call basic initialization
  392.     return (void*) somNewObject(HIDialog);
  393. }
  394.  
  395. // HIDialog::delete uses the default deallocator for the object's class.
  396. void operator delete(void * obj)
  397. {
  398.     if (obj) {
  399.         SOM_Resolve(obj,SOMObject,somFree)
  400.            ( (SOMObject*) obj );
  401.     }
  402. }
  403.  
  404. /* method: InitDialog */
  405. OSStatus   InitDialog(Environment *ev,
  406.         RefLabel* identifier,
  407.         HIWindow* window)
  408. {
  409.    return SOM_ResolveD(this,HIDialog,HIDialog,InitDialog)
  410.     (this,ev,identifier,window);
  411. }
  412.  
  413. /* method: SetDefaultPushButton */
  414. OSStatus   SetDefaultPushButton(Environment *ev,
  415.         HIPushButton* defaultSubPanel,
  416.         boolean isDismissing)
  417. {
  418.    return SOM_ResolveD(this,HIDialog,HIDialog,SetDefaultPushButton)
  419.     (this,ev,defaultSubPanel,isDismissing);
  420. }
  421.  
  422. /* method: GetDefaultPushButton */
  423. HIPushButton*   GetDefaultPushButton(Environment *ev)
  424. {
  425.    return SOM_ResolveD(this,HIDialog,HIDialog,GetDefaultPushButton)
  426.     (this,ev);
  427. }
  428.  
  429. /* method: SetCancelPushButton */
  430. OSStatus   SetCancelPushButton(Environment *ev,
  431.         HIPushButton* cancelSubPanel,
  432.         boolean isDismissing)
  433. {
  434.    return SOM_ResolveD(this,HIDialog,HIDialog,SetCancelPushButton)
  435.     (this,ev,cancelSubPanel,isDismissing);
  436. }
  437.  
  438. /* method: GetCancelPushButton */
  439. HIPushButton*   GetCancelPushButton(Environment *ev)
  440. {
  441.    return SOM_ResolveD(this,HIDialog,HIDialog,GetCancelPushButton)
  442.     (this,ev);
  443. }
  444.  
  445. /* method: SetDismissingSubPanel */
  446. OSStatus   SetDismissingSubPanel(Environment *ev,
  447.         HIPushButton* subPanel,
  448.         boolean isDismissing)
  449. {
  450.    return SOM_ResolveD(this,HIDialog,HIDialog,SetDismissingSubPanel)
  451.     (this,ev,subPanel,isDismissing);
  452. }
  453.  
  454. /* method: IsDismissingSubPanel */
  455. boolean   IsDismissingSubPanel(Environment *ev,
  456.         HIPushButton* subPanel)
  457. {
  458.    return SOM_ResolveD(this,HIDialog,HIDialog,IsDismissingSubPanel)
  459.     (this,ev,subPanel);
  460. }
  461.  
  462. /* method: GetNextUserInputFocussedSubPanel */
  463. HIPanel*   GetNextUserInputFocussedSubPanel(Environment *ev,
  464.         boolean goingBackwards)
  465. {
  466.    return SOM_ResolveD(this,HIDialog,HIDialog,GetNextUserInputFocussedSubPanel)
  467.     (this,ev,goingBackwards);
  468. }
  469.  
  470. /* method: Dismiss */
  471. boolean   Dismiss(Environment *ev)
  472. {
  473.    return SOM_ResolveD(this,HIDialog,HIDialog,Dismiss)
  474.     (this,ev);
  475. }
  476.  
  477.  
  478. /*
  479.  * -- Inherited methods
  480.  */
  481. /* method: InitRootPanel */
  482. OSStatus   InitRootPanel(Environment *ev,
  483.         RefLabel* identifier,
  484.         HIWindow* window)
  485. {
  486.    return SOM_ResolveD(this,HIDialog,HIRootPanel,InitRootPanel)
  487.     (this,ev,identifier,window);
  488. }
  489.  
  490. /* method: AdjustAccumulatedEraseRgn */
  491. void   AdjustAccumulatedEraseRgn(Environment *ev,
  492.         HIAccumulatorOperation accumulatorOperation,
  493.         Rect* oldRectangle,
  494.         Rect* newRectangle)
  495. {
  496.    SOM_ResolveD(this,HIDialog,HIRootPanel,AdjustAccumulatedEraseRgn)
  497.     (this,ev,accumulatorOperation,oldRectangle,newRectangle);
  498. }
  499.  
  500. /* method: EraseAccumulatedEraseRgn */
  501. void   EraseAccumulatedEraseRgn(Environment *ev,
  502.         CGrafPtr targetPort)
  503. {
  504.    SOM_ResolveD(this,HIDialog,HIRootPanel,EraseAccumulatedEraseRgn)
  505.     (this,ev,targetPort);
  506. }
  507.  
  508. /* method: GetSubPanelCount */
  509. ItemCount   GetSubPanelCount(Environment *ev)
  510. {
  511.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,GetSubPanelCount)
  512.     (this,ev);
  513. }
  514.  
  515. /* method: GetLastSelectedSubPanel */
  516. HIPanel*   GetLastSelectedSubPanel(Environment *ev)
  517. {
  518.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,GetLastSelectedSubPanel)
  519.     (this,ev);
  520. }
  521.  
  522. /* method: InitEmbeddingPanel */
  523. OSStatus   InitEmbeddingPanel(Environment *ev,
  524.         RefLabel* identifier,
  525.         HIWindow* window,
  526.         Rect* bounds)
  527. {
  528.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,InitEmbeddingPanel)
  529.     (this,ev,identifier,window,bounds);
  530. }
  531.  
  532. /* method: AddSubPanel */
  533. OSStatus   AddSubPanel(Environment *ev,
  534.         HIPanel* subPanel,
  535.         HISubPanelIndex where,
  536.         HIAdoptionFlags adoptionFlags,
  537.         HIFrameBindingFlags frameBindingFlags)
  538. {
  539.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,AddSubPanel)
  540.     (this,ev,subPanel,where,adoptionFlags,frameBindingFlags);
  541. }
  542.  
  543. /* method: RemoveSubPanel */
  544. OSStatus   RemoveSubPanel(Environment *ev,
  545.         HIPanel* subPanel)
  546. {
  547.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,RemoveSubPanel)
  548.     (this,ev,subPanel);
  549. }
  550.  
  551. /* method: GetSubPanel */
  552. HIPanel*   GetSubPanel(Environment *ev,
  553.         HISubPanelIndex subPanelIndex)
  554. {
  555.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,GetSubPanel)
  556.     (this,ev,subPanelIndex);
  557. }
  558.  
  559. /* method: GetUserInputFocusSubPanel */
  560. HIPanel*   GetUserInputFocusSubPanel(Environment *ev)
  561. {
  562.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,GetUserInputFocusSubPanel)
  563.     (this,ev);
  564. }
  565.  
  566. /* method: SetUserInputFocusSubPanel */
  567. OSStatus   SetUserInputFocusSubPanel(Environment *ev,
  568.         HIPanel* subPanel)
  569. {
  570.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,SetUserInputFocusSubPanel)
  571.     (this,ev,subPanel);
  572. }
  573.  
  574. /* method: GetSubPanelIndex */
  575. HISubPanelIndex   GetSubPanelIndex(Environment *ev,
  576.         HIPanel* subPanel)
  577. {
  578.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,GetSubPanelIndex)
  579.     (this,ev,subPanel);
  580. }
  581.  
  582. /* method: GetSubPanelsFromRefLabel */
  583. OSStatus   GetSubPanelsFromRefLabel(Environment *ev,
  584.         RefLabel* identifier,
  585.         boolean deep,
  586.         ItemCount requestedSubPanels,
  587.         ItemCount* totalSubPanels,
  588.         HIPanel** thePanels)
  589. {
  590.    return SOM_ResolveD(this,HIDialog,HIEmbeddingPanel,GetSubPanelsFromRefLabel)
  591.     (this,ev,identifier,deep,requestedSubPanels,totalSubPanels,thePanels);
  592. }
  593.  
  594. /* method: GetEmbeddingParent */
  595. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  596. {
  597.    return SOM_ResolveD(this,HIDialog,HIPanel,GetEmbeddingParent)
  598.     (this,ev);
  599. }
  600.  
  601. /* method: InitPanel */
  602. OSStatus   InitPanel(Environment *ev,
  603.         RefLabel* identifier,
  604.         HIWindow* window,
  605.         Rect* bounds)
  606. {
  607.    return SOM_ResolveD(this,HIDialog,HIPanel,InitPanel)
  608.     (this,ev,identifier,window,bounds);
  609. }
  610.  
  611. /* method: RegisterInterestInAppleEvent */
  612. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  613.         AEHandlerTableRef table,
  614.         AEEventClass eventClass,
  615.         AEEventID eventID,
  616.         HIEventRoutingType eventRouting)
  617. {
  618.    return SOM_ResolveD(this,HIDialog,HIPanel,RegisterInterestInAppleEvent)
  619.     (this,ev,table,eventClass,eventID,eventRouting);
  620. }
  621.  
  622. /* method: HasValidContent */
  623. boolean   HasValidContent(Environment *ev)
  624. {
  625.    return SOM_ResolveD(this,HIDialog,HIPanel,HasValidContent)
  626.     (this,ev);
  627. }
  628.  
  629. /* method: GetDeepCollectionItemData */
  630. OSStatus   GetDeepCollectionItemData(Environment *ev,
  631.         CollectionTag tag,
  632.         SInt32 id,
  633.         ByteCount sizeAllowed,
  634.         ByteCount* sizeReturned,
  635.         void* itemData)
  636. {
  637.    return SOM_ResolveD(this,HIDialog,HIPanel,GetDeepCollectionItemData)
  638.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  639. }
  640.  
  641. /* method: GetWindow */
  642. HIWindow*   GetWindow(Environment *ev)
  643. {
  644.    return SOM_ResolveD(this,HIDialog,HIObject,GetWindow)
  645.     (this,ev);
  646. }
  647.  
  648. /* method: GetPort */
  649. CGrafPtr   GetPort(Environment *ev)
  650. {
  651.    return SOM_ResolveD(this,HIDialog,HIObject,GetPort)
  652.     (this,ev);
  653. }
  654.  
  655. /* method: GetRefLabel */
  656. void   GetRefLabel(Environment *ev,
  657.         RefLabel* identifier)
  658. {
  659.    SOM_ResolveD(this,HIDialog,HIObject,GetRefLabel)
  660.     (this,ev,identifier);
  661. }
  662.  
  663. /* method: GetCollection */
  664. Collection   GetCollection(Environment *ev)
  665. {
  666.    return SOM_ResolveD(this,HIDialog,HIObject,GetCollection)
  667.     (this,ev);
  668. }
  669.  
  670. /* method: Init */
  671. OSStatus   Init(Environment *ev,
  672.         RefLabel* identifier,
  673.         Rect* boundingRect)
  674. {
  675.    return SOM_ResolveD(this,HIDialog,HIObject,Init)
  676.     (this,ev,identifier,boundingRect);
  677. }
  678.  
  679. /* method: Terminate */
  680. void   Terminate(Environment *ev)
  681. {
  682.    SOM_ResolveD(this,HIDialog,HIObject,Terminate)
  683.     (this,ev);
  684. }
  685.  
  686. /* method: Clone */
  687. HIObject*   Clone(Environment *ev)
  688. {
  689.    return SOM_ResolveD(this,HIDialog,HIObject,Clone)
  690.     (this,ev);
  691. }
  692.  
  693. /* method: Release */
  694. void   Release(Environment *ev)
  695. {
  696.    SOM_ResolveD(this,HIDialog,HIObject,Release)
  697.     (this,ev);
  698. }
  699.  
  700. /* method: GetOwnerCount */
  701. ItemCount   GetOwnerCount(Environment *ev)
  702. {
  703.    return SOM_ResolveD(this,HIDialog,HIObject,GetOwnerCount)
  704.     (this,ev);
  705. }
  706.  
  707. /* method: InitFromAERecord */
  708. OSStatus   InitFromAERecord(Environment *ev,
  709.         AESubDesc* baseInitializerData,
  710.         AESubDesc* initializerDataForClass,
  711.         HIAERecordDataFormat dataFormat)
  712. {
  713.    return SOM_ResolveD(this,HIDialog,HIObject,InitFromAERecord)
  714.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  715. }
  716.  
  717. /* method: WriteToAERecord */
  718. OSStatus   WriteToAERecord(Environment *ev,
  719.         AERecord* dataForSubclass,
  720.         AERecord* objectData,
  721.         HIAERecordDataFormat dataFormat)
  722. {
  723.    return SOM_ResolveD(this,HIDialog,HIObject,WriteToAERecord)
  724.     (this,ev,dataForSubclass,objectData,dataFormat);
  725. }
  726.  
  727. /* method: CalculateOptimalSize */
  728. void   CalculateOptimalSize(Environment *ev,
  729.         SInt16* optimalWidth,
  730.         SInt16* optimalHeight)
  731. {
  732.    SOM_ResolveD(this,HIDialog,HIObject,CalculateOptimalSize)
  733.     (this,ev,optimalWidth,optimalHeight);
  734. }
  735.  
  736. /* method: GetBoundingRect */
  737. void   GetBoundingRect(Environment *ev,
  738.         HICoordinateSystem coordinate,
  739.         Rect* boundingRect)
  740. {
  741.    SOM_ResolveD(this,HIDialog,HIObject,GetBoundingRect)
  742.     (this,ev,coordinate,boundingRect);
  743. }
  744.  
  745. /* method: SetBoundingRect */
  746. void   SetBoundingRect(Environment *ev,
  747.         HICoordinateSystem coordinate,
  748.         Rect* newBoundingRect)
  749. {
  750.    SOM_ResolveD(this,HIDialog,HIObject,SetBoundingRect)
  751.     (this,ev,coordinate,newBoundingRect);
  752. }
  753.  
  754. /* method: SetPosition */
  755. void   SetPosition(Environment *ev,
  756.         HICoordinateSystem coordinate,
  757.         Point* newPosition)
  758. {
  759.    SOM_ResolveD(this,HIDialog,HIObject,SetPosition)
  760.     (this,ev,coordinate,newPosition);
  761. }
  762.  
  763. /* method: SetSize */
  764. void   SetSize(Environment *ev,
  765.         SInt16 width,
  766.         SInt16 height)
  767. {
  768.    SOM_ResolveD(this,HIDialog,HIObject,SetSize)
  769.     (this,ev,width,height);
  770. }
  771.  
  772. /* method: GetUpdateRect */
  773. void   GetUpdateRect(Environment *ev,
  774.         HICoordinateSystem coordinate,
  775.         Rect* updateRect)
  776. {
  777.    SOM_ResolveD(this,HIDialog,HIObject,GetUpdateRect)
  778.     (this,ev,coordinate,updateRect);
  779. }
  780.  
  781. /* method: Enable */
  782. void   Enable(Environment *ev)
  783. {
  784.    SOM_ResolveD(this,HIDialog,HIObject,Enable)
  785.     (this,ev);
  786. }
  787.  
  788. /* method: Disable */
  789. void   Disable(Environment *ev)
  790. {
  791.    SOM_ResolveD(this,HIDialog,HIObject,Disable)
  792.     (this,ev);
  793. }
  794.  
  795. /* method: IsEnabled */
  796. boolean   IsEnabled(Environment *ev)
  797. {
  798.    return SOM_ResolveD(this,HIDialog,HIObject,IsEnabled)
  799.     (this,ev);
  800. }
  801.  
  802. /* method: Show */
  803. void   Show(Environment *ev)
  804. {
  805.    SOM_ResolveD(this,HIDialog,HIObject,Show)
  806.     (this,ev);
  807. }
  808.  
  809. /* method: Hide */
  810. void   Hide(Environment *ev)
  811. {
  812.    SOM_ResolveD(this,HIDialog,HIObject,Hide)
  813.     (this,ev);
  814. }
  815.  
  816. /* method: IsVisible */
  817. boolean   IsVisible(Environment *ev)
  818. {
  819.    return SOM_ResolveD(this,HIDialog,HIObject,IsVisible)
  820.     (this,ev);
  821. }
  822.  
  823. /* method: HandleAppleEvent */
  824. OSStatus   HandleAppleEvent(Environment *ev,
  825.         AEEventClass eventClass,
  826.         AEEventID eventID,
  827.         AppleEvent* theEvent,
  828.         AppleEvent* reply,
  829.         AEHandlerTableRef handlerTableRef)
  830. {
  831.    return SOM_ResolveD(this,HIDialog,HIObject,HandleAppleEvent)
  832.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  833. }
  834.  
  835. /* method: HandleActivate */
  836. OSStatus   HandleActivate(Environment *ev,
  837.         AppleEvent* theEvent,
  838.         AppleEvent* reply,
  839.         AEHandlerTableRef handlerTableRef)
  840. {
  841.    return SOM_ResolveD(this,HIDialog,HIObject,HandleActivate)
  842.     (this,ev,theEvent,reply,handlerTableRef);
  843. }
  844.  
  845. /* method: HandleDeactivate */
  846. OSStatus   HandleDeactivate(Environment *ev,
  847.         AppleEvent* theEvent,
  848.         AppleEvent* reply,
  849.         AEHandlerTableRef handlerTableRef)
  850. {
  851.    return SOM_ResolveD(this,HIDialog,HIObject,HandleDeactivate)
  852.     (this,ev,theEvent,reply,handlerTableRef);
  853. }
  854.  
  855. /* method: HandleNavigation */
  856. OSStatus   HandleNavigation(Environment *ev,
  857.         SInt8 key,
  858.         SInt8 keyCode,
  859.         EventModifiers modifiers,
  860.         AppleEvent* theEvent,
  861.         AppleEvent* reply,
  862.         AEHandlerTableRef handlerTableRef)
  863. {
  864.    return SOM_ResolveD(this,HIDialog,HIObject,HandleNavigation)
  865.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  866. }
  867.  
  868. /* method: HandleMouseDownInContent */
  869. OSStatus   HandleMouseDownInContent(Environment *ev,
  870.         Point* portLocalWhere,
  871.         EventModifiers modifiers,
  872.         AppleEvent* theEvent,
  873.         AppleEvent* reply,
  874.         AEHandlerTableRef handlerTableRef)
  875. {
  876.    return SOM_ResolveD(this,HIDialog,HIObject,HandleMouseDownInContent)
  877.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  878. }
  879.  
  880. /* method: HandleMouseMovedInContent */
  881. OSStatus   HandleMouseMovedInContent(Environment *ev,
  882.         Point* portLocalWhere,
  883.         EventModifiers modifiers,
  884.         AppleEvent* theEvent,
  885.         AppleEvent* reply,
  886.         AEHandlerTableRef handlerTableRef)
  887. {
  888.    return SOM_ResolveD(this,HIDialog,HIObject,HandleMouseMovedInContent)
  889.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  890. }
  891.  
  892. /* method: HandleMouseStoppedMovingInContent */
  893. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  894.         Point* portLocalWhere,
  895.         EventModifiers modifiers,
  896.         AppleEvent* theEvent,
  897.         AppleEvent* reply,
  898.         AEHandlerTableRef handlerTableRef)
  899. {
  900.    return SOM_ResolveD(this,HIDialog,HIObject,HandleMouseStoppedMovingInContent)
  901.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  902. }
  903.  
  904. /* method: HandleMouseUpInContent */
  905. OSStatus   HandleMouseUpInContent(Environment *ev,
  906.         Point* portLocalWhere,
  907.         EventModifiers modifiers,
  908.         AppleEvent* theEvent,
  909.         AppleEvent* reply,
  910.         AEHandlerTableRef handlerTableRef)
  911. {
  912.    return SOM_ResolveD(this,HIDialog,HIObject,HandleMouseUpInContent)
  913.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  914. }
  915.  
  916. /* method: TakeUserInputFocus */
  917. void   TakeUserInputFocus(Environment *ev)
  918. {
  919.    SOM_ResolveD(this,HIDialog,HIObject,TakeUserInputFocus)
  920.     (this,ev);
  921. }
  922.  
  923. /* method: ReleaseUserInputFocus */
  924. void   ReleaseUserInputFocus(Environment *ev)
  925. {
  926.    SOM_ResolveD(this,HIDialog,HIObject,ReleaseUserInputFocus)
  927.     (this,ev);
  928. }
  929.  
  930. /* method: HasUserInputFocus */
  931. boolean   HasUserInputFocus(Environment *ev)
  932. {
  933.    return SOM_ResolveD(this,HIDialog,HIObject,HasUserInputFocus)
  934.     (this,ev);
  935. }
  936.  
  937. /* method: CanReleaseUserInputFocus */
  938. boolean   CanReleaseUserInputFocus(Environment *ev)
  939. {
  940.    return SOM_ResolveD(this,HIDialog,HIObject,CanReleaseUserInputFocus)
  941.     (this,ev);
  942. }
  943.  
  944. /* method: SetUserInputFocusFlags */
  945. void   SetUserInputFocusFlags(Environment *ev,
  946.         HIUserInputFocusFlags flags)
  947. {
  948.    SOM_ResolveD(this,HIDialog,HIObject,SetUserInputFocusFlags)
  949.     (this,ev,flags);
  950. }
  951.  
  952. /* method: GetUserInputFocusFlags */
  953. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  954. {
  955.    return SOM_ResolveD(this,HIDialog,HIObject,GetUserInputFocusFlags)
  956.     (this,ev);
  957. }
  958.  
  959. /* method: SetTitle */
  960. OSStatus   SetTitle(Environment *ev,
  961.         ConstHIImageRef title,
  962.         HIAdoptionFlags disposalAdoptionFlags)
  963. {
  964.    return SOM_ResolveD(this,HIDialog,HIObject,SetTitle)
  965.     (this,ev,title,disposalAdoptionFlags);
  966. }
  967.  
  968. /* method: GetTitle */
  969. OSStatus   GetTitle(Environment *ev,
  970.         HIImageRef* title)
  971. {
  972.    return SOM_ResolveD(this,HIDialog,HIObject,GetTitle)
  973.     (this,ev,title);
  974. }
  975.  
  976. /* method: Draw */
  977. void   Draw(Environment *ev,
  978.         CGrafPtr whichPort,
  979.         RgnHandle drawRgn)
  980. {
  981.    SOM_ResolveD(this,HIDialog,HIObject,Draw)
  982.     (this,ev,whichPort,drawRgn);
  983. }
  984.  
  985. /* method: Erase */
  986. void   Erase(Environment *ev,
  987.         CGrafPtr whichPort,
  988.         RgnHandle eraseRgn)
  989. {
  990.    SOM_ResolveD(this,HIDialog,HIObject,Erase)
  991.     (this,ev,whichPort,eraseRgn);
  992. }
  993.  
  994. /* method: Invalidate */
  995. void   Invalidate(Environment *ev)
  996. {
  997.    SOM_ResolveD(this,HIDialog,HIObject,Invalidate)
  998.     (this,ev);
  999. }
  1000.  
  1001. /* method: GetDrawingMode */
  1002. HIDrawingMode   GetDrawingMode(Environment *ev)
  1003. {
  1004.    return SOM_ResolveD(this,HIDialog,HIObject,GetDrawingMode)
  1005.     (this,ev);
  1006. }
  1007.  
  1008. /* method: SetDrawingMode */
  1009. void   SetDrawingMode(Environment *ev,
  1010.         HIDrawingMode drawingMode)
  1011. {
  1012.    SOM_ResolveD(this,HIDialog,HIObject,SetDrawingMode)
  1013.     (this,ev,drawingMode);
  1014. }
  1015.  
  1016. /* method: SetBackgroundPattern */
  1017. void   SetBackgroundPattern(Environment *ev,
  1018.         PixPatHandle backgroundPattern)
  1019. {
  1020.    SOM_ResolveD(this,HIDialog,HIObject,SetBackgroundPattern)
  1021.     (this,ev,backgroundPattern);
  1022. }
  1023.  
  1024. /* method: GetBackgroundPattern */
  1025. PixPatHandle   GetBackgroundPattern(Environment *ev)
  1026. {
  1027.    return SOM_ResolveD(this,HIDialog,HIObject,GetBackgroundPattern)
  1028.     (this,ev);
  1029. }
  1030.  
  1031. /* method: Cut */
  1032. void   Cut(Environment *ev)
  1033. {
  1034.    SOM_ResolveD(this,HIDialog,HIObject,Cut)
  1035.     (this,ev);
  1036. }
  1037.  
  1038. /* method: Copy */
  1039. void   Copy(Environment *ev)
  1040. {
  1041.    SOM_ResolveD(this,HIDialog,HIObject,Copy)
  1042.     (this,ev);
  1043. }
  1044.  
  1045. /* method: Paste */
  1046. void   Paste(Environment *ev)
  1047. {
  1048.    SOM_ResolveD(this,HIDialog,HIObject,Paste)
  1049.     (this,ev);
  1050. }
  1051.  
  1052. /* method: Clear */
  1053. void   Clear(Environment *ev)
  1054. {
  1055.    SOM_ResolveD(this,HIDialog,HIObject,Clear)
  1056.     (this,ev);
  1057. }
  1058.  
  1059. /* method: GetClipboardSupportFlags */
  1060. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  1061. {
  1062.    return SOM_ResolveD(this,HIDialog,HIObject,GetClipboardSupportFlags)
  1063.     (this,ev);
  1064. }
  1065.  
  1066. /* method: AddStateChangeCallback */
  1067. OSStatus   AddStateChangeCallback(Environment *ev,
  1068.         HIStateChangeCallbackProcPtr changedStateCallback,
  1069.         HIStateChangeCallbackRef* newCallbackRef)
  1070. {
  1071.    return SOM_ResolveD(this,HIDialog,HIObject,AddStateChangeCallback)
  1072.     (this,ev,changedStateCallback,newCallbackRef);
  1073. }
  1074.  
  1075. /* method: RemoveStateChangeCallback */
  1076. OSStatus   RemoveStateChangeCallback(Environment *ev,
  1077.         HIStateChangeCallbackRef callbackRefToRemove)
  1078. {
  1079.    return SOM_ResolveD(this,HIDialog,HIObject,RemoveStateChangeCallback)
  1080.     (this,ev,callbackRefToRemove);
  1081. }
  1082.  
  1083. /* noself procedure: GetHIObjectFromRefLabel */
  1084. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  1085.         RefLabel* identifier,
  1086.         ItemCount requestedObjects,
  1087.         ItemCount* totalObjects,
  1088.         HIObject** theObjects)
  1089. {
  1090. return ((somTD_HIDialog_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  1091.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  1092. }
  1093.  
  1094. /* noself procedure: GetNewHIObject */
  1095. static OSStatus   GetNewHIObject(Environment *ev,
  1096.         AESubDesc* objectInitializer,
  1097.         HIObject** newObject)
  1098. {
  1099. return ((somTD_HIDialog_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  1100.     (ev,objectInitializer,newObject);
  1101. }
  1102.  
  1103. /* noself procedure: GetNewHIObjectFromResource */
  1104. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  1105.         ResID objectInitializerResourceID,
  1106.         HIObject** newObject)
  1107. {
  1108. return ((somTD_HIDialog_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  1109.     (ev,objectInitializerResourceID,newObject);
  1110. }
  1111.  
  1112. /* method: DrawContent */
  1113. void   DrawContent(Environment *ev,
  1114.         CGrafPtr whichPort,
  1115.         RgnHandle drawRgn)
  1116. {
  1117.    SOM_ResolveD(this,HIDialog,HIObject,DrawContent)
  1118.     (this,ev,whichPort,drawRgn);
  1119. }
  1120.  
  1121. /* method: EraseContent */
  1122. void   EraseContent(Environment *ev,
  1123.         CGrafPtr whichPort,
  1124.         RgnHandle regionToErase)
  1125. {
  1126.    SOM_ResolveD(this,HIDialog,HIObject,EraseContent)
  1127.     (this,ev,whichPort,regionToErase);
  1128. }
  1129.  
  1130. /* method: TranslatePoint */
  1131. void   TranslatePoint(Environment *ev,
  1132.         HICoordinateSystem translateFrom,
  1133.         HICoordinateSystem translateTo,
  1134.         Point* sourcePoint,
  1135.         Point* translatedPoint)
  1136. {
  1137.    SOM_ResolveD(this,HIDialog,HIObject,TranslatePoint)
  1138.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  1139. }
  1140.  
  1141. /* method: TranslateRect */
  1142. void   TranslateRect(Environment *ev,
  1143.         HICoordinateSystem translateFrom,
  1144.         HICoordinateSystem translateTo,
  1145.         Rect* sourceRect,
  1146.         Rect* translatedRect)
  1147. {
  1148.    SOM_ResolveD(this,HIDialog,HIObject,TranslateRect)
  1149.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  1150. }
  1151.  
  1152. /* method: StateChanged */
  1153. void   StateChanged(Environment *ev,
  1154.         HIStateChangeCodeCreator selectorCreator,
  1155.         HIStateChangeCode changedCode)
  1156. {
  1157.    SOM_ResolveD(this,HIDialog,HIObject,StateChanged)
  1158.     (this,ev,selectorCreator,changedCode);
  1159. }
  1160.  
  1161. /* method: SetClipboardSupportFlags */
  1162. void   SetClipboardSupportFlags(Environment *ev,
  1163.         HIClipboardSupportFlags flags)
  1164. {
  1165.    SOM_ResolveD(this,HIDialog,HIObject,SetClipboardSupportFlags)
  1166.     (this,ev,flags);
  1167. }
  1168.  
  1169. /* method: Verify */
  1170. OSStatus   Verify(Environment *ev)
  1171. {
  1172.    return SOM_ResolveD(this,HIDialog,HIObject,Verify)
  1173.     (this,ev);
  1174. }
  1175.  
  1176. /* method: somInit */
  1177. void   somInit()
  1178. {
  1179.    SOM_ResolveD(this,HIDialog,SOMObject,somInit)
  1180.     (this);
  1181. }
  1182.  
  1183. /* method: somUninit */
  1184. void   somUninit()
  1185. {
  1186.    SOM_ResolveD(this,HIDialog,SOMObject,somUninit)
  1187.     (this);
  1188. }
  1189.  
  1190. /* method: somDuplicateReference */
  1191. SOMObject*   somDuplicateReference()
  1192. {
  1193.    return SOM_ResolveD(this,HIDialog,SOMObject,somDuplicateReference)
  1194.     (this);
  1195. }
  1196.  
  1197. /* method: somCompareReference */
  1198. boolean   somCompareReference(SOMObject* anObject)
  1199. {
  1200.    return SOM_ResolveD(this,HIDialog,SOMObject,somCompareReference)
  1201.     (this,anObject);
  1202. }
  1203.  
  1204. /* method: somRelease */
  1205. SOMObject*   somRelease()
  1206. {
  1207.    return SOM_ResolveD(this,HIDialog,SOMObject,somRelease)
  1208.     (this);
  1209. }
  1210.  
  1211. /* method: somFree */
  1212. void   somFree()
  1213. {
  1214.    SOM_ResolveD(this,HIDialog,SOMObject,somFree)
  1215.     (this);
  1216. }
  1217.  
  1218. /* method: somCanDelete */
  1219. boolean   somCanDelete()
  1220. {
  1221.    return SOM_ResolveD(this,HIDialog,SOMObject,somCanDelete)
  1222.     (this);
  1223. }
  1224.  
  1225. /* method: somGetClass */
  1226. SOMClass*   somGetClass()
  1227. {
  1228.    return SOM_ResolveD(this,HIDialog,SOMObject,somGetClass)
  1229.     (this);
  1230. }
  1231.  
  1232. /* method: somGetClassName */
  1233. corbastring   somGetClassName()
  1234. {
  1235.    return SOM_ResolveD(this,HIDialog,SOMObject,somGetClassName)
  1236.     (this);
  1237. }
  1238.  
  1239. /* method: somGetSize */
  1240. long   somGetSize()
  1241. {
  1242.    return SOM_ResolveD(this,HIDialog,SOMObject,somGetSize)
  1243.     (this);
  1244. }
  1245.  
  1246. /* method: somIsA */
  1247. boolean   somIsA(SOMClass* aClassObj)
  1248. {
  1249.    return SOM_ResolveD(this,HIDialog,SOMObject,somIsA)
  1250.     (this,aClassObj);
  1251. }
  1252.  
  1253. /* method: somRespondsTo */
  1254. boolean   somRespondsTo(somId mId)
  1255. {
  1256.    return SOM_ResolveD(this,HIDialog,SOMObject,somRespondsTo)
  1257.     (this,mId);
  1258. }
  1259.  
  1260. /* method: somIsInstanceOf */
  1261. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1262. {
  1263.    return SOM_ResolveD(this,HIDialog,SOMObject,somIsInstanceOf)
  1264.     (this,aClassObj);
  1265. }
  1266.  
  1267. /* va_list method: somDispatch */
  1268. /* the va_list invocation form */
  1269. boolean   HIDialog_somDispatch(somToken* retValue,
  1270.         somId methodId,
  1271.         va_list ap)
  1272. {
  1273.    return SOM_ResolveD(this,HIDialog,SOMObject,somDispatch)
  1274.     (this,retValue,methodId,ap);
  1275. }
  1276.  
  1277. /* the varargs invocation form */
  1278. boolean   somDispatch(somToken* retValue,
  1279.         somId methodId,
  1280.         ...)
  1281. {
  1282.    va_list ap;
  1283.    va_start(ap, methodId);
  1284.       boolean __somResult = 
  1285.       (boolean) SOM_ResolveD(this,HIDialog,SOMObject,somDispatch)
  1286.     (this,retValue,methodId,ap);
  1287.    va_end(ap);
  1288.    return __somResult;
  1289. }
  1290.  
  1291. /* va_list method: somClassDispatch */
  1292. /* the va_list invocation form */
  1293. boolean   HIDialog_somClassDispatch(SOMClass* clsObj,
  1294.         somToken* retValue,
  1295.         somId methodId,
  1296.         va_list ap)
  1297. {
  1298.    return SOM_ResolveD(this,HIDialog,SOMObject,somClassDispatch)
  1299.     (this,clsObj,retValue,methodId,ap);
  1300. }
  1301.  
  1302. /* the varargs invocation form */
  1303. boolean   somClassDispatch(SOMClass* clsObj,
  1304.         somToken* retValue,
  1305.         somId methodId,
  1306.         ...)
  1307. {
  1308.    va_list ap;
  1309.    va_start(ap, methodId);
  1310.       boolean __somResult = 
  1311.       (boolean) SOM_ResolveD(this,HIDialog,SOMObject,somClassDispatch)
  1312.     (this,clsObj,retValue,methodId,ap);
  1313.    va_end(ap);
  1314.    return __somResult;
  1315. }
  1316.  
  1317. /* method: somCastObj */
  1318. boolean   somCastObj(SOMClass* cls)
  1319. {
  1320.    return SOM_ResolveD(this,HIDialog,SOMObject,somCastObj)
  1321.     (this,cls);
  1322. }
  1323.  
  1324. /* method: somResetObj */
  1325. boolean   somResetObj()
  1326. {
  1327.    return SOM_ResolveD(this,HIDialog,SOMObject,somResetObj)
  1328.     (this);
  1329. }
  1330.  
  1331. /* method: somPrintSelf */
  1332. SOMObject*   somPrintSelf()
  1333. {
  1334.    return SOM_ResolveD(this,HIDialog,SOMObject,somPrintSelf)
  1335.     (this);
  1336. }
  1337.  
  1338. /* method: somDumpSelf */
  1339. void   somDumpSelf(long level)
  1340. {
  1341.    SOM_ResolveD(this,HIDialog,SOMObject,somDumpSelf)
  1342.     (this,level);
  1343. }
  1344.  
  1345. /* method: somDumpSelfInt */
  1346. void   somDumpSelfInt(long level)
  1347. {
  1348.    SOM_ResolveD(this,HIDialog,SOMObject,somDumpSelfInt)
  1349.     (this,level);
  1350. }
  1351.  
  1352. };   /* HIDialog */
  1353.  
  1354.  
  1355.  
  1356. #endif       /* SOM_HIDialog_xh */
  1357.  
  1358. #ifndef SOM_HIModalDialog_xh
  1359. #define SOM_HIModalDialog_xh
  1360.  
  1361. class HIModalDialog;
  1362.  
  1363. #define HIModalDialog_MajorVersion 0
  1364. #define HIModalDialog_MinorVersion 0
  1365.  
  1366. /* C++ SOM defs */
  1367. #include <somcls.xh>
  1368. #include <somcm.xh>
  1369.  
  1370. /* C++ parent defs */
  1371. #ifndef SOM_HIDialog_xh
  1372. #include <HIDialogs.xh>
  1373. #endif
  1374.  
  1375. #ifndef HIModalDialog_API
  1376. #define HIModalDialog_API
  1377. /*
  1378.  * -- The Class API
  1379.  */
  1380.  
  1381. /*
  1382.  * Start of user-defined types:
  1383.  */
  1384.  
  1385. /*
  1386.  * End of user-defined types.
  1387.  */
  1388.  
  1389. #ifdef OLDIBMSOMAPISUPPORT
  1390. #define HIModalDialogCClassData HIModalDialogClassData
  1391. #define HIModalDialogNewClass(major,minor) somNewVersionedClassReference(HIModalDialog,major,minor)
  1392. #endif
  1393.  
  1394. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1395. #define HIModalDialogMetaClass SOMClass
  1396.  
  1397. #if PRAGMA_ALIGN_SUPPORTED
  1398. #  pragma options align=power
  1399. #endif
  1400.  
  1401. /* The API to the HIModalDialog class object, and the methods it introduces. */
  1402. SOMEXTERN struct HIModalDialogClassDataStructure {
  1403. #ifdef OLDIBMSOMAPISUPPORT
  1404.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  1405. #else
  1406.     long zero;
  1407. #endif
  1408.     somStaticClassInfo *sci;
  1409.     somDToken        instanceDataToken;
  1410.     long reserved [3];
  1411.     somMToken InitModalDialog;
  1412.     somMToken ExecuteModality;
  1413.     somMToken GetModalAEHandlerTable;
  1414. } SOMDLINK HIModalDialogClassData;
  1415.  
  1416. #if PRAGMA_ALIGN_SUPPORTED
  1417. #  pragma options align=reset
  1418. #endif
  1419.  
  1420. #if !defined(HIModalDialog_Class_Source) && !defined(SOM_Module_hidialogs_Source)
  1421. #if PRAGMA_IMPORT_SUPPORTED
  1422. #pragma import list HIModalDialogClassData
  1423. #endif
  1424. #endif
  1425.  
  1426.  
  1427. /*
  1428.  * -- Typedefs for HIModalDialog Method Procedures
  1429.  */
  1430. SOMEXTERN {
  1431. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_InitModalDialog)(HIModalDialog *somSelf, Environment *ev,
  1432.         RefLabel* identifier,
  1433.         Rect* screenBounds,
  1434.         boolean moveable);
  1435. typedef AEHandlerTableRef   (* SOMLINK somTD_HIModalDialog_GetModalAEHandlerTable)(HIModalDialog *somSelf, Environment *ev);
  1436. typedef void   (* SOMLINK somTD_HIModalDialog_ExecuteModality)(HIModalDialog *somSelf, Environment *ev);
  1437.  
  1438. /*
  1439.  * -- Typedefs for Inherited Methods
  1440.  */
  1441. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_InitDialog)(HIModalDialog *somSelf, Environment *ev,
  1442.         RefLabel* identifier,
  1443.         HIWindow* window);
  1444. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_SetDefaultPushButton)(HIModalDialog *somSelf, Environment *ev,
  1445.         HIPushButton* defaultSubPanel,
  1446.         boolean isDismissing);
  1447. typedef HIPushButton*   (* SOMLINK somTD_HIModalDialog_GetDefaultPushButton)(HIModalDialog *somSelf, Environment *ev);
  1448. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_SetCancelPushButton)(HIModalDialog *somSelf, Environment *ev,
  1449.         HIPushButton* cancelSubPanel,
  1450.         boolean isDismissing);
  1451. typedef HIPushButton*   (* SOMLINK somTD_HIModalDialog_GetCancelPushButton)(HIModalDialog *somSelf, Environment *ev);
  1452. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_SetDismissingSubPanel)(HIModalDialog *somSelf, Environment *ev,
  1453.         HIPushButton* subPanel,
  1454.         boolean isDismissing);
  1455. typedef boolean   (* SOMLINK somTD_HIModalDialog_IsDismissingSubPanel)(HIModalDialog *somSelf, Environment *ev,
  1456.         HIPushButton* subPanel);
  1457. typedef HIPanel*   (* SOMLINK somTD_HIModalDialog_GetNextUserInputFocussedSubPanel)(HIModalDialog *somSelf, Environment *ev,
  1458.         boolean goingBackwards);
  1459. typedef boolean   (* SOMLINK somTD_HIModalDialog_Dismiss)(HIModalDialog *somSelf, Environment *ev);
  1460. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_InitRootPanel)(HIModalDialog *somSelf, Environment *ev,
  1461.         RefLabel* identifier,
  1462.         HIWindow* window);
  1463. typedef void   (* SOMLINK somTD_HIModalDialog_AdjustAccumulatedEraseRgn)(HIModalDialog *somSelf, Environment *ev,
  1464.         HIAccumulatorOperation accumulatorOperation,
  1465.         Rect* oldRectangle,
  1466.         Rect* newRectangle);
  1467. typedef void   (* SOMLINK somTD_HIModalDialog_EraseAccumulatedEraseRgn)(HIModalDialog *somSelf, Environment *ev,
  1468.         CGrafPtr targetPort);
  1469. typedef ItemCount   (* SOMLINK somTD_HIModalDialog_GetSubPanelCount)(HIModalDialog *somSelf, Environment *ev);
  1470. typedef HIPanel*   (* SOMLINK somTD_HIModalDialog_GetLastSelectedSubPanel)(HIModalDialog *somSelf, Environment *ev);
  1471. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_InitEmbeddingPanel)(HIModalDialog *somSelf, Environment *ev,
  1472.         RefLabel* identifier,
  1473.         HIWindow* window,
  1474.         Rect* bounds);
  1475. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_AddSubPanel)(HIModalDialog *somSelf, Environment *ev,
  1476.         HIPanel* subPanel,
  1477.         HISubPanelIndex where,
  1478.         HIAdoptionFlags adoptionFlags,
  1479.         HIFrameBindingFlags frameBindingFlags);
  1480. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_RemoveSubPanel)(HIModalDialog *somSelf, Environment *ev,
  1481.         HIPanel* subPanel);
  1482. typedef HIPanel*   (* SOMLINK somTD_HIModalDialog_GetSubPanel)(HIModalDialog *somSelf, Environment *ev,
  1483.         HISubPanelIndex subPanelIndex);
  1484. typedef HIPanel*   (* SOMLINK somTD_HIModalDialog_GetUserInputFocusSubPanel)(HIModalDialog *somSelf, Environment *ev);
  1485. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_SetUserInputFocusSubPanel)(HIModalDialog *somSelf, Environment *ev,
  1486.         HIPanel* subPanel);
  1487. typedef HISubPanelIndex   (* SOMLINK somTD_HIModalDialog_GetSubPanelIndex)(HIModalDialog *somSelf, Environment *ev,
  1488.         HIPanel* subPanel);
  1489. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_GetSubPanelsFromRefLabel)(HIModalDialog *somSelf, Environment *ev,
  1490.         RefLabel* identifier,
  1491.         boolean deep,
  1492.         ItemCount requestedSubPanels,
  1493.         ItemCount* totalSubPanels,
  1494.         HIPanel** thePanels);
  1495. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIModalDialog_GetEmbeddingParent)(HIModalDialog *somSelf, Environment *ev);
  1496. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_InitPanel)(HIModalDialog *somSelf, Environment *ev,
  1497.         RefLabel* identifier,
  1498.         HIWindow* window,
  1499.         Rect* bounds);
  1500. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_RegisterInterestInAppleEvent)(HIModalDialog *somSelf, Environment *ev,
  1501.         AEHandlerTableRef table,
  1502.         AEEventClass eventClass,
  1503.         AEEventID eventID,
  1504.         HIEventRoutingType eventRouting);
  1505. typedef boolean   (* SOMLINK somTD_HIModalDialog_HasValidContent)(HIModalDialog *somSelf, Environment *ev);
  1506. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_GetDeepCollectionItemData)(HIModalDialog *somSelf, Environment *ev,
  1507.         CollectionTag tag,
  1508.         SInt32 id,
  1509.         ByteCount sizeAllowed,
  1510.         ByteCount* sizeReturned,
  1511.         void* itemData);
  1512. typedef HIWindow*   (* SOMLINK somTD_HIModalDialog_GetWindow)(HIModalDialog *somSelf, Environment *ev);
  1513. typedef CGrafPtr   (* SOMLINK somTD_HIModalDialog_GetPort)(HIModalDialog *somSelf, Environment *ev);
  1514. typedef void   (* SOMLINK somTD_HIModalDialog_GetRefLabel)(HIModalDialog *somSelf, Environment *ev,
  1515.         RefLabel* identifier);
  1516. typedef Collection   (* SOMLINK somTD_HIModalDialog_GetCollection)(HIModalDialog *somSelf, Environment *ev);
  1517. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_Init)(HIModalDialog *somSelf, Environment *ev,
  1518.         RefLabel* identifier,
  1519.         Rect* boundingRect);
  1520. typedef void   (* SOMLINK somTD_HIModalDialog_Terminate)(HIModalDialog *somSelf, Environment *ev);
  1521. typedef HIObject*   (* SOMLINK somTD_HIModalDialog_Clone)(HIModalDialog *somSelf, Environment *ev);
  1522. typedef void   (* SOMLINK somTD_HIModalDialog_Release)(HIModalDialog *somSelf, Environment *ev);
  1523. typedef ItemCount   (* SOMLINK somTD_HIModalDialog_GetOwnerCount)(HIModalDialog *somSelf, Environment *ev);
  1524. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_InitFromAERecord)(HIModalDialog *somSelf, Environment *ev,
  1525.         AESubDesc* baseInitializerData,
  1526.         AESubDesc* initializerDataForClass,
  1527.         HIAERecordDataFormat dataFormat);
  1528. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_WriteToAERecord)(HIModalDialog *somSelf, Environment *ev,
  1529.         AERecord* dataForSubclass,
  1530.         AERecord* objectData,
  1531.         HIAERecordDataFormat dataFormat);
  1532. typedef void   (* SOMLINK somTD_HIModalDialog_CalculateOptimalSize)(HIModalDialog *somSelf, Environment *ev,
  1533.         SInt16* optimalWidth,
  1534.         SInt16* optimalHeight);
  1535. typedef void   (* SOMLINK somTD_HIModalDialog_GetBoundingRect)(HIModalDialog *somSelf, Environment *ev,
  1536.         HICoordinateSystem coordinate,
  1537.         Rect* boundingRect);
  1538. typedef void   (* SOMLINK somTD_HIModalDialog_SetBoundingRect)(HIModalDialog *somSelf, Environment *ev,
  1539.         HICoordinateSystem coordinate,
  1540.         Rect* newBoundingRect);
  1541. typedef void   (* SOMLINK somTD_HIModalDialog_SetPosition)(HIModalDialog *somSelf, Environment *ev,
  1542.         HICoordinateSystem coordinate,
  1543.         Point* newPosition);
  1544. typedef void   (* SOMLINK somTD_HIModalDialog_SetSize)(HIModalDialog *somSelf, Environment *ev,
  1545.         SInt16 width,
  1546.         SInt16 height);
  1547. typedef void   (* SOMLINK somTD_HIModalDialog_GetUpdateRect)(HIModalDialog *somSelf, Environment *ev,
  1548.         HICoordinateSystem coordinate,
  1549.         Rect* updateRect);
  1550. typedef void   (* SOMLINK somTD_HIModalDialog_Enable)(HIModalDialog *somSelf, Environment *ev);
  1551. typedef void   (* SOMLINK somTD_HIModalDialog_Disable)(HIModalDialog *somSelf, Environment *ev);
  1552. typedef boolean   (* SOMLINK somTD_HIModalDialog_IsEnabled)(HIModalDialog *somSelf, Environment *ev);
  1553. typedef void   (* SOMLINK somTD_HIModalDialog_Show)(HIModalDialog *somSelf, Environment *ev);
  1554. typedef void   (* SOMLINK somTD_HIModalDialog_Hide)(HIModalDialog *somSelf, Environment *ev);
  1555. typedef boolean   (* SOMLINK somTD_HIModalDialog_IsVisible)(HIModalDialog *somSelf, Environment *ev);
  1556. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleAppleEvent)(HIModalDialog *somSelf, Environment *ev,
  1557.         AEEventClass eventClass,
  1558.         AEEventID eventID,
  1559.         AppleEvent* theEvent,
  1560.         AppleEvent* reply,
  1561.         AEHandlerTableRef handlerTableRef);
  1562. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleActivate)(HIModalDialog *somSelf, Environment *ev,
  1563.         AppleEvent* theEvent,
  1564.         AppleEvent* reply,
  1565.         AEHandlerTableRef handlerTableRef);
  1566. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleDeactivate)(HIModalDialog *somSelf, Environment *ev,
  1567.         AppleEvent* theEvent,
  1568.         AppleEvent* reply,
  1569.         AEHandlerTableRef handlerTableRef);
  1570. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleNavigation)(HIModalDialog *somSelf, Environment *ev,
  1571.         SInt8 key,
  1572.         SInt8 keyCode,
  1573.         EventModifiers modifiers,
  1574.         AppleEvent* theEvent,
  1575.         AppleEvent* reply,
  1576.         AEHandlerTableRef handlerTableRef);
  1577. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleMouseDownInContent)(HIModalDialog *somSelf, Environment *ev,
  1578.         Point* portLocalWhere,
  1579.         EventModifiers modifiers,
  1580.         AppleEvent* theEvent,
  1581.         AppleEvent* reply,
  1582.         AEHandlerTableRef handlerTableRef);
  1583. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleMouseMovedInContent)(HIModalDialog *somSelf, Environment *ev,
  1584.         Point* portLocalWhere,
  1585.         EventModifiers modifiers,
  1586.         AppleEvent* theEvent,
  1587.         AppleEvent* reply,
  1588.         AEHandlerTableRef handlerTableRef);
  1589. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleMouseStoppedMovingInContent)(HIModalDialog *somSelf, Environment *ev,
  1590.         Point* portLocalWhere,
  1591.         EventModifiers modifiers,
  1592.         AppleEvent* theEvent,
  1593.         AppleEvent* reply,
  1594.         AEHandlerTableRef handlerTableRef);
  1595. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_HandleMouseUpInContent)(HIModalDialog *somSelf, Environment *ev,
  1596.         Point* portLocalWhere,
  1597.         EventModifiers modifiers,
  1598.         AppleEvent* theEvent,
  1599.         AppleEvent* reply,
  1600.         AEHandlerTableRef handlerTableRef);
  1601. typedef void   (* SOMLINK somTD_HIModalDialog_TakeUserInputFocus)(HIModalDialog *somSelf, Environment *ev);
  1602. typedef void   (* SOMLINK somTD_HIModalDialog_ReleaseUserInputFocus)(HIModalDialog *somSelf, Environment *ev);
  1603. typedef boolean   (* SOMLINK somTD_HIModalDialog_HasUserInputFocus)(HIModalDialog *somSelf, Environment *ev);
  1604. typedef boolean   (* SOMLINK somTD_HIModalDialog_CanReleaseUserInputFocus)(HIModalDialog *somSelf, Environment *ev);
  1605. typedef void   (* SOMLINK somTD_HIModalDialog_SetUserInputFocusFlags)(HIModalDialog *somSelf, Environment *ev,
  1606.         HIUserInputFocusFlags flags);
  1607. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIModalDialog_GetUserInputFocusFlags)(HIModalDialog *somSelf, Environment *ev);
  1608. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_SetTitle)(HIModalDialog *somSelf, Environment *ev,
  1609.         ConstHIImageRef title,
  1610.         HIAdoptionFlags disposalAdoptionFlags);
  1611. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_GetTitle)(HIModalDialog *somSelf, Environment *ev,
  1612.         HIImageRef* title);
  1613. typedef void   (* SOMLINK somTD_HIModalDialog_Draw)(HIModalDialog *somSelf, Environment *ev,
  1614.         CGrafPtr whichPort,
  1615.         RgnHandle drawRgn);
  1616. typedef void   (* SOMLINK somTD_HIModalDialog_Erase)(HIModalDialog *somSelf, Environment *ev,
  1617.         CGrafPtr whichPort,
  1618.         RgnHandle eraseRgn);
  1619. typedef void   (* SOMLINK somTD_HIModalDialog_Invalidate)(HIModalDialog *somSelf, Environment *ev);
  1620. typedef HIDrawingMode   (* SOMLINK somTD_HIModalDialog_GetDrawingMode)(HIModalDialog *somSelf, Environment *ev);
  1621. typedef void   (* SOMLINK somTD_HIModalDialog_SetDrawingMode)(HIModalDialog *somSelf, Environment *ev,
  1622.         HIDrawingMode drawingMode);
  1623. typedef void   (* SOMLINK somTD_HIModalDialog_SetBackgroundPattern)(HIModalDialog *somSelf, Environment *ev,
  1624.         PixPatHandle backgroundPattern);
  1625. typedef PixPatHandle   (* SOMLINK somTD_HIModalDialog_GetBackgroundPattern)(HIModalDialog *somSelf, Environment *ev);
  1626. typedef void   (* SOMLINK somTD_HIModalDialog_Cut)(HIModalDialog *somSelf, Environment *ev);
  1627. typedef void   (* SOMLINK somTD_HIModalDialog_Copy)(HIModalDialog *somSelf, Environment *ev);
  1628. typedef void   (* SOMLINK somTD_HIModalDialog_Paste)(HIModalDialog *somSelf, Environment *ev);
  1629. typedef void   (* SOMLINK somTD_HIModalDialog_Clear)(HIModalDialog *somSelf, Environment *ev);
  1630. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIModalDialog_GetClipboardSupportFlags)(HIModalDialog *somSelf, Environment *ev);
  1631. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_AddStateChangeCallback)(HIModalDialog *somSelf, Environment *ev,
  1632.         HIStateChangeCallbackProcPtr changedStateCallback,
  1633.         HIStateChangeCallbackRef* newCallbackRef);
  1634. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_RemoveStateChangeCallback)(HIModalDialog *somSelf, Environment *ev,
  1635.         HIStateChangeCallbackRef callbackRefToRemove);
  1636. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_GetHIObjectFromRefLabel)(Environment *ev,
  1637.         RefLabel* identifier,
  1638.         ItemCount requestedObjects,
  1639.         ItemCount* totalObjects,
  1640.         HIObject** theObjects);
  1641. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_GetNewHIObject)(Environment *ev,
  1642.         AESubDesc* objectInitializer,
  1643.         HIObject** newObject);
  1644. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_GetNewHIObjectFromResource)(Environment *ev,
  1645.         ResID objectInitializerResourceID,
  1646.         HIObject** newObject);
  1647. typedef void   (* SOMLINK somTD_HIModalDialog_DrawContent)(HIModalDialog *somSelf, Environment *ev,
  1648.         CGrafPtr whichPort,
  1649.         RgnHandle drawRgn);
  1650. typedef void   (* SOMLINK somTD_HIModalDialog_EraseContent)(HIModalDialog *somSelf, Environment *ev,
  1651.         CGrafPtr whichPort,
  1652.         RgnHandle regionToErase);
  1653. typedef void   (* SOMLINK somTD_HIModalDialog_TranslatePoint)(HIModalDialog *somSelf, Environment *ev,
  1654.         HICoordinateSystem translateFrom,
  1655.         HICoordinateSystem translateTo,
  1656.         Point* sourcePoint,
  1657.         Point* translatedPoint);
  1658. typedef void   (* SOMLINK somTD_HIModalDialog_TranslateRect)(HIModalDialog *somSelf, Environment *ev,
  1659.         HICoordinateSystem translateFrom,
  1660.         HICoordinateSystem translateTo,
  1661.         Rect* sourceRect,
  1662.         Rect* translatedRect);
  1663. typedef void   (* SOMLINK somTD_HIModalDialog_StateChanged)(HIModalDialog *somSelf, Environment *ev,
  1664.         HIStateChangeCodeCreator selectorCreator,
  1665.         HIStateChangeCode changedCode);
  1666. typedef void   (* SOMLINK somTD_HIModalDialog_SetClipboardSupportFlags)(HIModalDialog *somSelf, Environment *ev,
  1667.         HIClipboardSupportFlags flags);
  1668. typedef OSStatus   (* SOMLINK somTD_HIModalDialog_Verify)(HIModalDialog *somSelf, Environment *ev);
  1669. typedef void   (* SOMLINK somTD_HIModalDialog_somInit)(HIModalDialog *somSelf);
  1670. typedef void   (* SOMLINK somTD_HIModalDialog_somUninit)(HIModalDialog *somSelf);
  1671. typedef SOMObject*   (* SOMLINK somTD_HIModalDialog_somDuplicateReference)(HIModalDialog *somSelf);
  1672. typedef boolean   (* SOMLINK somTD_HIModalDialog_somCompareReference)(HIModalDialog *somSelf,
  1673.         SOMObject* anObject);
  1674. typedef SOMObject*   (* SOMLINK somTD_HIModalDialog_somRelease)(HIModalDialog *somSelf);
  1675. typedef void   (* SOMLINK somTD_HIModalDialog_somFree)(HIModalDialog *somSelf);
  1676. typedef boolean   (* SOMLINK somTD_HIModalDialog_somCanDelete)(HIModalDialog *somSelf);
  1677. typedef SOMClass*   (* SOMLINK somTD_HIModalDialog_somGetClass)(HIModalDialog *somSelf);
  1678. typedef corbastring   (* SOMLINK somTD_HIModalDialog_somGetClassName)(HIModalDialog *somSelf);
  1679. typedef long   (* SOMLINK somTD_HIModalDialog_somGetSize)(HIModalDialog *somSelf);
  1680. typedef boolean   (* SOMLINK somTD_HIModalDialog_somIsA)(HIModalDialog *somSelf,
  1681.         SOMClass* aClassObj);
  1682. typedef boolean   (* SOMLINK somTD_HIModalDialog_somRespondsTo)(HIModalDialog *somSelf,
  1683.         somId mId);
  1684. typedef boolean   (* SOMLINK somTD_HIModalDialog_somIsInstanceOf)(HIModalDialog *somSelf,
  1685.         SOMClass* aClassObj);
  1686. typedef boolean   (* SOMLINK somTD_HIModalDialog_somDispatch)(HIModalDialog *somSelf,
  1687.         somToken* retValue,
  1688.         somId methodId,
  1689.         va_list ap);
  1690. typedef boolean   (* SOMLINK somTD_HIModalDialog_somClassDispatch)(HIModalDialog *somSelf,
  1691.         SOMClass* clsObj,
  1692.         somToken* retValue,
  1693.         somId methodId,
  1694.         va_list ap);
  1695. typedef boolean   (* SOMLINK somTD_HIModalDialog_somCastObj)(HIModalDialog *somSelf,
  1696.         SOMClass* cls);
  1697. typedef boolean   (* SOMLINK somTD_HIModalDialog_somResetObj)(HIModalDialog *somSelf);
  1698. typedef SOMObject*   (* SOMLINK somTD_HIModalDialog_somPrintSelf)(HIModalDialog *somSelf);
  1699. typedef void   (* SOMLINK somTD_HIModalDialog_somDumpSelf)(HIModalDialog *somSelf,
  1700.         long level);
  1701. typedef void   (* SOMLINK somTD_HIModalDialog_somDumpSelfInt)(HIModalDialog *somSelf,
  1702.         long level);
  1703. }
  1704.  
  1705. #endif /* HIModalDialog_API */
  1706.  
  1707.  
  1708. /*
  1709.  * -- This emitter treats Method Tokens as Thunks by default.
  1710.  * -- Use the sc modifier "nothunks" to change this default
  1711.  */
  1712. #undef somresolve_
  1713. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1714.  
  1715. /*
  1716.  * -- The C++ Wrapper Class for HIModalDialog
  1717.  */
  1718. class HIModalDialog : public HIDialog
  1719. {
  1720. public:
  1721.  
  1722. // HIModalDialog::new registers use of the class object, and then uses somNew
  1723. // to allocate memory and load the object method table pointer. 
  1724. void *operator new(size_t size)
  1725. {
  1726.     SOM_IgnoreWarning(size);
  1727.     // Allocate memory using the default allocator for HIModalDialog, and
  1728.     // clear mem & set method table pointer, call basic initialization
  1729.     return (void*) somNewObject(HIModalDialog);
  1730. }
  1731.  
  1732. // HIModalDialog::delete uses the default deallocator for the object's class.
  1733. void operator delete(void * obj)
  1734. {
  1735.     if (obj) {
  1736.         SOM_Resolve(obj,SOMObject,somFree)
  1737.            ( (SOMObject*) obj );
  1738.     }
  1739. }
  1740.  
  1741. /* method: InitModalDialog */
  1742. OSStatus   InitModalDialog(Environment *ev,
  1743.         RefLabel* identifier,
  1744.         Rect* screenBounds,
  1745.         boolean moveable)
  1746. {
  1747.    return SOM_ResolveD(this,HIModalDialog,HIModalDialog,InitModalDialog)
  1748.     (this,ev,identifier,screenBounds,moveable);
  1749. }
  1750.  
  1751. /* method: GetModalAEHandlerTable */
  1752. AEHandlerTableRef   GetModalAEHandlerTable(Environment *ev)
  1753. {
  1754.    return SOM_ResolveD(this,HIModalDialog,HIModalDialog,GetModalAEHandlerTable)
  1755.     (this,ev);
  1756. }
  1757.  
  1758. /* method: ExecuteModality */
  1759. void   ExecuteModality(Environment *ev)
  1760. {
  1761.    SOM_ResolveD(this,HIModalDialog,HIModalDialog,ExecuteModality)
  1762.     (this,ev);
  1763. }
  1764.  
  1765.  
  1766. /*
  1767.  * -- Inherited methods
  1768.  */
  1769. /* method: InitDialog */
  1770. OSStatus   InitDialog(Environment *ev,
  1771.         RefLabel* identifier,
  1772.         HIWindow* window)
  1773. {
  1774.    return SOM_ResolveD(this,HIModalDialog,HIDialog,InitDialog)
  1775.     (this,ev,identifier,window);
  1776. }
  1777.  
  1778. /* method: SetDefaultPushButton */
  1779. OSStatus   SetDefaultPushButton(Environment *ev,
  1780.         HIPushButton* defaultSubPanel,
  1781.         boolean isDismissing)
  1782. {
  1783.    return SOM_ResolveD(this,HIModalDialog,HIDialog,SetDefaultPushButton)
  1784.     (this,ev,defaultSubPanel,isDismissing);
  1785. }
  1786.  
  1787. /* method: GetDefaultPushButton */
  1788. HIPushButton*   GetDefaultPushButton(Environment *ev)
  1789. {
  1790.    return SOM_ResolveD(this,HIModalDialog,HIDialog,GetDefaultPushButton)
  1791.     (this,ev);
  1792. }
  1793.  
  1794. /* method: SetCancelPushButton */
  1795. OSStatus   SetCancelPushButton(Environment *ev,
  1796.         HIPushButton* cancelSubPanel,
  1797.         boolean isDismissing)
  1798. {
  1799.    return SOM_ResolveD(this,HIModalDialog,HIDialog,SetCancelPushButton)
  1800.     (this,ev,cancelSubPanel,isDismissing);
  1801. }
  1802.  
  1803. /* method: GetCancelPushButton */
  1804. HIPushButton*   GetCancelPushButton(Environment *ev)
  1805. {
  1806.    return SOM_ResolveD(this,HIModalDialog,HIDialog,GetCancelPushButton)
  1807.     (this,ev);
  1808. }
  1809.  
  1810. /* method: SetDismissingSubPanel */
  1811. OSStatus   SetDismissingSubPanel(Environment *ev,
  1812.         HIPushButton* subPanel,
  1813.         boolean isDismissing)
  1814. {
  1815.    return SOM_ResolveD(this,HIModalDialog,HIDialog,SetDismissingSubPanel)
  1816.     (this,ev,subPanel,isDismissing);
  1817. }
  1818.  
  1819. /* method: IsDismissingSubPanel */
  1820. boolean   IsDismissingSubPanel(Environment *ev,
  1821.         HIPushButton* subPanel)
  1822. {
  1823.    return SOM_ResolveD(this,HIModalDialog,HIDialog,IsDismissingSubPanel)
  1824.     (this,ev,subPanel);
  1825. }
  1826.  
  1827. /* method: GetNextUserInputFocussedSubPanel */
  1828. HIPanel*   GetNextUserInputFocussedSubPanel(Environment *ev,
  1829.         boolean goingBackwards)
  1830. {
  1831.    return SOM_ResolveD(this,HIModalDialog,HIDialog,GetNextUserInputFocussedSubPanel)
  1832.     (this,ev,goingBackwards);
  1833. }
  1834.  
  1835. /* method: Dismiss */
  1836. boolean   Dismiss(Environment *ev)
  1837. {
  1838.    return SOM_ResolveD(this,HIModalDialog,HIDialog,Dismiss)
  1839.     (this,ev);
  1840. }
  1841.  
  1842. /* method: InitRootPanel */
  1843. OSStatus   InitRootPanel(Environment *ev,
  1844.         RefLabel* identifier,
  1845.         HIWindow* window)
  1846. {
  1847.    return SOM_ResolveD(this,HIModalDialog,HIRootPanel,InitRootPanel)
  1848.     (this,ev,identifier,window);
  1849. }
  1850.  
  1851. /* method: AdjustAccumulatedEraseRgn */
  1852. void   AdjustAccumulatedEraseRgn(Environment *ev,
  1853.         HIAccumulatorOperation accumulatorOperation,
  1854.         Rect* oldRectangle,
  1855.         Rect* newRectangle)
  1856. {
  1857.    SOM_ResolveD(this,HIModalDialog,HIRootPanel,AdjustAccumulatedEraseRgn)
  1858.     (this,ev,accumulatorOperation,oldRectangle,newRectangle);
  1859. }
  1860.  
  1861. /* method: EraseAccumulatedEraseRgn */
  1862. void   EraseAccumulatedEraseRgn(Environment *ev,
  1863.         CGrafPtr targetPort)
  1864. {
  1865.    SOM_ResolveD(this,HIModalDialog,HIRootPanel,EraseAccumulatedEraseRgn)
  1866.     (this,ev,targetPort);
  1867. }
  1868.  
  1869. /* method: GetSubPanelCount */
  1870. ItemCount   GetSubPanelCount(Environment *ev)
  1871. {
  1872.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,GetSubPanelCount)
  1873.     (this,ev);
  1874. }
  1875.  
  1876. /* method: GetLastSelectedSubPanel */
  1877. HIPanel*   GetLastSelectedSubPanel(Environment *ev)
  1878. {
  1879.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,GetLastSelectedSubPanel)
  1880.     (this,ev);
  1881. }
  1882.  
  1883. /* method: InitEmbeddingPanel */
  1884. OSStatus   InitEmbeddingPanel(Environment *ev,
  1885.         RefLabel* identifier,
  1886.         HIWindow* window,
  1887.         Rect* bounds)
  1888. {
  1889.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,InitEmbeddingPanel)
  1890.     (this,ev,identifier,window,bounds);
  1891. }
  1892.  
  1893. /* method: AddSubPanel */
  1894. OSStatus   AddSubPanel(Environment *ev,
  1895.         HIPanel* subPanel,
  1896.         HISubPanelIndex where,
  1897.         HIAdoptionFlags adoptionFlags,
  1898.         HIFrameBindingFlags frameBindingFlags)
  1899. {
  1900.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,AddSubPanel)
  1901.     (this,ev,subPanel,where,adoptionFlags,frameBindingFlags);
  1902. }
  1903.  
  1904. /* method: RemoveSubPanel */
  1905. OSStatus   RemoveSubPanel(Environment *ev,
  1906.         HIPanel* subPanel)
  1907. {
  1908.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,RemoveSubPanel)
  1909.     (this,ev,subPanel);
  1910. }
  1911.  
  1912. /* method: GetSubPanel */
  1913. HIPanel*   GetSubPanel(Environment *ev,
  1914.         HISubPanelIndex subPanelIndex)
  1915. {
  1916.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,GetSubPanel)
  1917.     (this,ev,subPanelIndex);
  1918. }
  1919.  
  1920. /* method: GetUserInputFocusSubPanel */
  1921. HIPanel*   GetUserInputFocusSubPanel(Environment *ev)
  1922. {
  1923.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,GetUserInputFocusSubPanel)
  1924.     (this,ev);
  1925. }
  1926.  
  1927. /* method: SetUserInputFocusSubPanel */
  1928. OSStatus   SetUserInputFocusSubPanel(Environment *ev,
  1929.         HIPanel* subPanel)
  1930. {
  1931.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,SetUserInputFocusSubPanel)
  1932.     (this,ev,subPanel);
  1933. }
  1934.  
  1935. /* method: GetSubPanelIndex */
  1936. HISubPanelIndex   GetSubPanelIndex(Environment *ev,
  1937.         HIPanel* subPanel)
  1938. {
  1939.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,GetSubPanelIndex)
  1940.     (this,ev,subPanel);
  1941. }
  1942.  
  1943. /* method: GetSubPanelsFromRefLabel */
  1944. OSStatus   GetSubPanelsFromRefLabel(Environment *ev,
  1945.         RefLabel* identifier,
  1946.         boolean deep,
  1947.         ItemCount requestedSubPanels,
  1948.         ItemCount* totalSubPanels,
  1949.         HIPanel** thePanels)
  1950. {
  1951.    return SOM_ResolveD(this,HIModalDialog,HIEmbeddingPanel,GetSubPanelsFromRefLabel)
  1952.     (this,ev,identifier,deep,requestedSubPanels,totalSubPanels,thePanels);
  1953. }
  1954.  
  1955. /* method: GetEmbeddingParent */
  1956. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  1957. {
  1958.    return SOM_ResolveD(this,HIModalDialog,HIPanel,GetEmbeddingParent)
  1959.     (this,ev);
  1960. }
  1961.  
  1962. /* method: InitPanel */
  1963. OSStatus   InitPanel(Environment *ev,
  1964.         RefLabel* identifier,
  1965.         HIWindow* window,
  1966.         Rect* bounds)
  1967. {
  1968.    return SOM_ResolveD(this,HIModalDialog,HIPanel,InitPanel)
  1969.     (this,ev,identifier,window,bounds);
  1970. }
  1971.  
  1972. /* method: RegisterInterestInAppleEvent */
  1973. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  1974.         AEHandlerTableRef table,
  1975.         AEEventClass eventClass,
  1976.         AEEventID eventID,
  1977.         HIEventRoutingType eventRouting)
  1978. {
  1979.    return SOM_ResolveD(this,HIModalDialog,HIPanel,RegisterInterestInAppleEvent)
  1980.     (this,ev,table,eventClass,eventID,eventRouting);
  1981. }
  1982.  
  1983. /* method: HasValidContent */
  1984. boolean   HasValidContent(Environment *ev)
  1985. {
  1986.    return SOM_ResolveD(this,HIModalDialog,HIPanel,HasValidContent)
  1987.     (this,ev);
  1988. }
  1989.  
  1990. /* method: GetDeepCollectionItemData */
  1991. OSStatus   GetDeepCollectionItemData(Environment *ev,
  1992.         CollectionTag tag,
  1993.         SInt32 id,
  1994.         ByteCount sizeAllowed,
  1995.         ByteCount* sizeReturned,
  1996.         void* itemData)
  1997. {
  1998.    return SOM_ResolveD(this,HIModalDialog,HIPanel,GetDeepCollectionItemData)
  1999.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  2000. }
  2001.  
  2002. /* method: GetWindow */
  2003. HIWindow*   GetWindow(Environment *ev)
  2004. {
  2005.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetWindow)
  2006.     (this,ev);
  2007. }
  2008.  
  2009. /* method: GetPort */
  2010. CGrafPtr   GetPort(Environment *ev)
  2011. {
  2012.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetPort)
  2013.     (this,ev);
  2014. }
  2015.  
  2016. /* method: GetRefLabel */
  2017. void   GetRefLabel(Environment *ev,
  2018.         RefLabel* identifier)
  2019. {
  2020.    SOM_ResolveD(this,HIModalDialog,HIObject,GetRefLabel)
  2021.     (this,ev,identifier);
  2022. }
  2023.  
  2024. /* method: GetCollection */
  2025. Collection   GetCollection(Environment *ev)
  2026. {
  2027.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetCollection)
  2028.     (this,ev);
  2029. }
  2030.  
  2031. /* method: Init */
  2032. OSStatus   Init(Environment *ev,
  2033.         RefLabel* identifier,
  2034.         Rect* boundingRect)
  2035. {
  2036.    return SOM_ResolveD(this,HIModalDialog,HIObject,Init)
  2037.     (this,ev,identifier,boundingRect);
  2038. }
  2039.  
  2040. /* method: Terminate */
  2041. void   Terminate(Environment *ev)
  2042. {
  2043.    SOM_ResolveD(this,HIModalDialog,HIObject,Terminate)
  2044.     (this,ev);
  2045. }
  2046.  
  2047. /* method: Clone */
  2048. HIObject*   Clone(Environment *ev)
  2049. {
  2050.    return SOM_ResolveD(this,HIModalDialog,HIObject,Clone)
  2051.     (this,ev);
  2052. }
  2053.  
  2054. /* method: Release */
  2055. void   Release(Environment *ev)
  2056. {
  2057.    SOM_ResolveD(this,HIModalDialog,HIObject,Release)
  2058.     (this,ev);
  2059. }
  2060.  
  2061. /* method: GetOwnerCount */
  2062. ItemCount   GetOwnerCount(Environment *ev)
  2063. {
  2064.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetOwnerCount)
  2065.     (this,ev);
  2066. }
  2067.  
  2068. /* method: InitFromAERecord */
  2069. OSStatus   InitFromAERecord(Environment *ev,
  2070.         AESubDesc* baseInitializerData,
  2071.         AESubDesc* initializerDataForClass,
  2072.         HIAERecordDataFormat dataFormat)
  2073. {
  2074.    return SOM_ResolveD(this,HIModalDialog,HIObject,InitFromAERecord)
  2075.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  2076. }
  2077.  
  2078. /* method: WriteToAERecord */
  2079. OSStatus   WriteToAERecord(Environment *ev,
  2080.         AERecord* dataForSubclass,
  2081.         AERecord* objectData,
  2082.         HIAERecordDataFormat dataFormat)
  2083. {
  2084.    return SOM_ResolveD(this,HIModalDialog,HIObject,WriteToAERecord)
  2085.     (this,ev,dataForSubclass,objectData,dataFormat);
  2086. }
  2087.  
  2088. /* method: CalculateOptimalSize */
  2089. void   CalculateOptimalSize(Environment *ev,
  2090.         SInt16* optimalWidth,
  2091.         SInt16* optimalHeight)
  2092. {
  2093.    SOM_ResolveD(this,HIModalDialog,HIObject,CalculateOptimalSize)
  2094.     (this,ev,optimalWidth,optimalHeight);
  2095. }
  2096.  
  2097. /* method: GetBoundingRect */
  2098. void   GetBoundingRect(Environment *ev,
  2099.         HICoordinateSystem coordinate,
  2100.         Rect* boundingRect)
  2101. {
  2102.    SOM_ResolveD(this,HIModalDialog,HIObject,GetBoundingRect)
  2103.     (this,ev,coordinate,boundingRect);
  2104. }
  2105.  
  2106. /* method: SetBoundingRect */
  2107. void   SetBoundingRect(Environment *ev,
  2108.         HICoordinateSystem coordinate,
  2109.         Rect* newBoundingRect)
  2110. {
  2111.    SOM_ResolveD(this,HIModalDialog,HIObject,SetBoundingRect)
  2112.     (this,ev,coordinate,newBoundingRect);
  2113. }
  2114.  
  2115. /* method: SetPosition */
  2116. void   SetPosition(Environment *ev,
  2117.         HICoordinateSystem coordinate,
  2118.         Point* newPosition)
  2119. {
  2120.    SOM_ResolveD(this,HIModalDialog,HIObject,SetPosition)
  2121.     (this,ev,coordinate,newPosition);
  2122. }
  2123.  
  2124. /* method: SetSize */
  2125. void   SetSize(Environment *ev,
  2126.         SInt16 width,
  2127.         SInt16 height)
  2128. {
  2129.    SOM_ResolveD(this,HIModalDialog,HIObject,SetSize)
  2130.     (this,ev,width,height);
  2131. }
  2132.  
  2133. /* method: GetUpdateRect */
  2134. void   GetUpdateRect(Environment *ev,
  2135.         HICoordinateSystem coordinate,
  2136.         Rect* updateRect)
  2137. {
  2138.    SOM_ResolveD(this,HIModalDialog,HIObject,GetUpdateRect)
  2139.     (this,ev,coordinate,updateRect);
  2140. }
  2141.  
  2142. /* method: Enable */
  2143. void   Enable(Environment *ev)
  2144. {
  2145.    SOM_ResolveD(this,HIModalDialog,HIObject,Enable)
  2146.     (this,ev);
  2147. }
  2148.  
  2149. /* method: Disable */
  2150. void   Disable(Environment *ev)
  2151. {
  2152.    SOM_ResolveD(this,HIModalDialog,HIObject,Disable)
  2153.     (this,ev);
  2154. }
  2155.  
  2156. /* method: IsEnabled */
  2157. boolean   IsEnabled(Environment *ev)
  2158. {
  2159.    return SOM_ResolveD(this,HIModalDialog,HIObject,IsEnabled)
  2160.     (this,ev);
  2161. }
  2162.  
  2163. /* method: Show */
  2164. void   Show(Environment *ev)
  2165. {
  2166.    SOM_ResolveD(this,HIModalDialog,HIObject,Show)
  2167.     (this,ev);
  2168. }
  2169.  
  2170. /* method: Hide */
  2171. void   Hide(Environment *ev)
  2172. {
  2173.    SOM_ResolveD(this,HIModalDialog,HIObject,Hide)
  2174.     (this,ev);
  2175. }
  2176.  
  2177. /* method: IsVisible */
  2178. boolean   IsVisible(Environment *ev)
  2179. {
  2180.    return SOM_ResolveD(this,HIModalDialog,HIObject,IsVisible)
  2181.     (this,ev);
  2182. }
  2183.  
  2184. /* method: HandleAppleEvent */
  2185. OSStatus   HandleAppleEvent(Environment *ev,
  2186.         AEEventClass eventClass,
  2187.         AEEventID eventID,
  2188.         AppleEvent* theEvent,
  2189.         AppleEvent* reply,
  2190.         AEHandlerTableRef handlerTableRef)
  2191. {
  2192.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleAppleEvent)
  2193.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  2194. }
  2195.  
  2196. /* method: HandleActivate */
  2197. OSStatus   HandleActivate(Environment *ev,
  2198.         AppleEvent* theEvent,
  2199.         AppleEvent* reply,
  2200.         AEHandlerTableRef handlerTableRef)
  2201. {
  2202.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleActivate)
  2203.     (this,ev,theEvent,reply,handlerTableRef);
  2204. }
  2205.  
  2206. /* method: HandleDeactivate */
  2207. OSStatus   HandleDeactivate(Environment *ev,
  2208.         AppleEvent* theEvent,
  2209.         AppleEvent* reply,
  2210.         AEHandlerTableRef handlerTableRef)
  2211. {
  2212.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleDeactivate)
  2213.     (this,ev,theEvent,reply,handlerTableRef);
  2214. }
  2215.  
  2216. /* method: HandleNavigation */
  2217. OSStatus   HandleNavigation(Environment *ev,
  2218.         SInt8 key,
  2219.         SInt8 keyCode,
  2220.         EventModifiers modifiers,
  2221.         AppleEvent* theEvent,
  2222.         AppleEvent* reply,
  2223.         AEHandlerTableRef handlerTableRef)
  2224. {
  2225.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleNavigation)
  2226.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  2227. }
  2228.  
  2229. /* method: HandleMouseDownInContent */
  2230. OSStatus   HandleMouseDownInContent(Environment *ev,
  2231.         Point* portLocalWhere,
  2232.         EventModifiers modifiers,
  2233.         AppleEvent* theEvent,
  2234.         AppleEvent* reply,
  2235.         AEHandlerTableRef handlerTableRef)
  2236. {
  2237.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleMouseDownInContent)
  2238.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2239. }
  2240.  
  2241. /* method: HandleMouseMovedInContent */
  2242. OSStatus   HandleMouseMovedInContent(Environment *ev,
  2243.         Point* portLocalWhere,
  2244.         EventModifiers modifiers,
  2245.         AppleEvent* theEvent,
  2246.         AppleEvent* reply,
  2247.         AEHandlerTableRef handlerTableRef)
  2248. {
  2249.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleMouseMovedInContent)
  2250.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2251. }
  2252.  
  2253. /* method: HandleMouseStoppedMovingInContent */
  2254. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  2255.         Point* portLocalWhere,
  2256.         EventModifiers modifiers,
  2257.         AppleEvent* theEvent,
  2258.         AppleEvent* reply,
  2259.         AEHandlerTableRef handlerTableRef)
  2260. {
  2261.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleMouseStoppedMovingInContent)
  2262.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2263. }
  2264.  
  2265. /* method: HandleMouseUpInContent */
  2266. OSStatus   HandleMouseUpInContent(Environment *ev,
  2267.         Point* portLocalWhere,
  2268.         EventModifiers modifiers,
  2269.         AppleEvent* theEvent,
  2270.         AppleEvent* reply,
  2271.         AEHandlerTableRef handlerTableRef)
  2272. {
  2273.    return SOM_ResolveD(this,HIModalDialog,HIObject,HandleMouseUpInContent)
  2274.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2275. }
  2276.  
  2277. /* method: TakeUserInputFocus */
  2278. void   TakeUserInputFocus(Environment *ev)
  2279. {
  2280.    SOM_ResolveD(this,HIModalDialog,HIObject,TakeUserInputFocus)
  2281.     (this,ev);
  2282. }
  2283.  
  2284. /* method: ReleaseUserInputFocus */
  2285. void   ReleaseUserInputFocus(Environment *ev)
  2286. {
  2287.    SOM_ResolveD(this,HIModalDialog,HIObject,ReleaseUserInputFocus)
  2288.     (this,ev);
  2289. }
  2290.  
  2291. /* method: HasUserInputFocus */
  2292. boolean   HasUserInputFocus(Environment *ev)
  2293. {
  2294.    return SOM_ResolveD(this,HIModalDialog,HIObject,HasUserInputFocus)
  2295.     (this,ev);
  2296. }
  2297.  
  2298. /* method: CanReleaseUserInputFocus */
  2299. boolean   CanReleaseUserInputFocus(Environment *ev)
  2300. {
  2301.    return SOM_ResolveD(this,HIModalDialog,HIObject,CanReleaseUserInputFocus)
  2302.     (this,ev);
  2303. }
  2304.  
  2305. /* method: SetUserInputFocusFlags */
  2306. void   SetUserInputFocusFlags(Environment *ev,
  2307.         HIUserInputFocusFlags flags)
  2308. {
  2309.    SOM_ResolveD(this,HIModalDialog,HIObject,SetUserInputFocusFlags)
  2310.     (this,ev,flags);
  2311. }
  2312.  
  2313. /* method: GetUserInputFocusFlags */
  2314. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  2315. {
  2316.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetUserInputFocusFlags)
  2317.     (this,ev);
  2318. }
  2319.  
  2320. /* method: SetTitle */
  2321. OSStatus   SetTitle(Environment *ev,
  2322.         ConstHIImageRef title,
  2323.         HIAdoptionFlags disposalAdoptionFlags)
  2324. {
  2325.    return SOM_ResolveD(this,HIModalDialog,HIObject,SetTitle)
  2326.     (this,ev,title,disposalAdoptionFlags);
  2327. }
  2328.  
  2329. /* method: GetTitle */
  2330. OSStatus   GetTitle(Environment *ev,
  2331.         HIImageRef* title)
  2332. {
  2333.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetTitle)
  2334.     (this,ev,title);
  2335. }
  2336.  
  2337. /* method: Draw */
  2338. void   Draw(Environment *ev,
  2339.         CGrafPtr whichPort,
  2340.         RgnHandle drawRgn)
  2341. {
  2342.    SOM_ResolveD(this,HIModalDialog,HIObject,Draw)
  2343.     (this,ev,whichPort,drawRgn);
  2344. }
  2345.  
  2346. /* method: Erase */
  2347. void   Erase(Environment *ev,
  2348.         CGrafPtr whichPort,
  2349.         RgnHandle eraseRgn)
  2350. {
  2351.    SOM_ResolveD(this,HIModalDialog,HIObject,Erase)
  2352.     (this,ev,whichPort,eraseRgn);
  2353. }
  2354.  
  2355. /* method: Invalidate */
  2356. void   Invalidate(Environment *ev)
  2357. {
  2358.    SOM_ResolveD(this,HIModalDialog,HIObject,Invalidate)
  2359.     (this,ev);
  2360. }
  2361.  
  2362. /* method: GetDrawingMode */
  2363. HIDrawingMode   GetDrawingMode(Environment *ev)
  2364. {
  2365.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetDrawingMode)
  2366.     (this,ev);
  2367. }
  2368.  
  2369. /* method: SetDrawingMode */
  2370. void   SetDrawingMode(Environment *ev,
  2371.         HIDrawingMode drawingMode)
  2372. {
  2373.    SOM_ResolveD(this,HIModalDialog,HIObject,SetDrawingMode)
  2374.     (this,ev,drawingMode);
  2375. }
  2376.  
  2377. /* method: SetBackgroundPattern */
  2378. void   SetBackgroundPattern(Environment *ev,
  2379.         PixPatHandle backgroundPattern)
  2380. {
  2381.    SOM_ResolveD(this,HIModalDialog,HIObject,SetBackgroundPattern)
  2382.     (this,ev,backgroundPattern);
  2383. }
  2384.  
  2385. /* method: GetBackgroundPattern */
  2386. PixPatHandle   GetBackgroundPattern(Environment *ev)
  2387. {
  2388.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetBackgroundPattern)
  2389.     (this,ev);
  2390. }
  2391.  
  2392. /* method: Cut */
  2393. void   Cut(Environment *ev)
  2394. {
  2395.    SOM_ResolveD(this,HIModalDialog,HIObject,Cut)
  2396.     (this,ev);
  2397. }
  2398.  
  2399. /* method: Copy */
  2400. void   Copy(Environment *ev)
  2401. {
  2402.    SOM_ResolveD(this,HIModalDialog,HIObject,Copy)
  2403.     (this,ev);
  2404. }
  2405.  
  2406. /* method: Paste */
  2407. void   Paste(Environment *ev)
  2408. {
  2409.    SOM_ResolveD(this,HIModalDialog,HIObject,Paste)
  2410.     (this,ev);
  2411. }
  2412.  
  2413. /* method: Clear */
  2414. void   Clear(Environment *ev)
  2415. {
  2416.    SOM_ResolveD(this,HIModalDialog,HIObject,Clear)
  2417.     (this,ev);
  2418. }
  2419.  
  2420. /* method: GetClipboardSupportFlags */
  2421. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  2422. {
  2423.    return SOM_ResolveD(this,HIModalDialog,HIObject,GetClipboardSupportFlags)
  2424.     (this,ev);
  2425. }
  2426.  
  2427. /* method: AddStateChangeCallback */
  2428. OSStatus   AddStateChangeCallback(Environment *ev,
  2429.         HIStateChangeCallbackProcPtr changedStateCallback,
  2430.         HIStateChangeCallbackRef* newCallbackRef)
  2431. {
  2432.    return SOM_ResolveD(this,HIModalDialog,HIObject,AddStateChangeCallback)
  2433.     (this,ev,changedStateCallback,newCallbackRef);
  2434. }
  2435.  
  2436. /* method: RemoveStateChangeCallback */
  2437. OSStatus   RemoveStateChangeCallback(Environment *ev,
  2438.         HIStateChangeCallbackRef callbackRefToRemove)
  2439. {
  2440.    return SOM_ResolveD(this,HIModalDialog,HIObject,RemoveStateChangeCallback)
  2441.     (this,ev,callbackRefToRemove);
  2442. }
  2443.  
  2444. /* noself procedure: GetHIObjectFromRefLabel */
  2445. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  2446.         RefLabel* identifier,
  2447.         ItemCount requestedObjects,
  2448.         ItemCount* totalObjects,
  2449.         HIObject** theObjects)
  2450. {
  2451. return ((somTD_HIModalDialog_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  2452.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  2453. }
  2454.  
  2455. /* noself procedure: GetNewHIObject */
  2456. static OSStatus   GetNewHIObject(Environment *ev,
  2457.         AESubDesc* objectInitializer,
  2458.         HIObject** newObject)
  2459. {
  2460. return ((somTD_HIModalDialog_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  2461.     (ev,objectInitializer,newObject);
  2462. }
  2463.  
  2464. /* noself procedure: GetNewHIObjectFromResource */
  2465. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  2466.         ResID objectInitializerResourceID,
  2467.         HIObject** newObject)
  2468. {
  2469. return ((somTD_HIModalDialog_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  2470.     (ev,objectInitializerResourceID,newObject);
  2471. }
  2472.  
  2473. /* method: DrawContent */
  2474. void   DrawContent(Environment *ev,
  2475.         CGrafPtr whichPort,
  2476.         RgnHandle drawRgn)
  2477. {
  2478.    SOM_ResolveD(this,HIModalDialog,HIObject,DrawContent)
  2479.     (this,ev,whichPort,drawRgn);
  2480. }
  2481.  
  2482. /* method: EraseContent */
  2483. void   EraseContent(Environment *ev,
  2484.         CGrafPtr whichPort,
  2485.         RgnHandle regionToErase)
  2486. {
  2487.    SOM_ResolveD(this,HIModalDialog,HIObject,EraseContent)
  2488.     (this,ev,whichPort,regionToErase);
  2489. }
  2490.  
  2491. /* method: TranslatePoint */
  2492. void   TranslatePoint(Environment *ev,
  2493.         HICoordinateSystem translateFrom,
  2494.         HICoordinateSystem translateTo,
  2495.         Point* sourcePoint,
  2496.         Point* translatedPoint)
  2497. {
  2498.    SOM_ResolveD(this,HIModalDialog,HIObject,TranslatePoint)
  2499.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  2500. }
  2501.  
  2502. /* method: TranslateRect */
  2503. void   TranslateRect(Environment *ev,
  2504.         HICoordinateSystem translateFrom,
  2505.         HICoordinateSystem translateTo,
  2506.         Rect* sourceRect,
  2507.         Rect* translatedRect)
  2508. {
  2509.    SOM_ResolveD(this,HIModalDialog,HIObject,TranslateRect)
  2510.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  2511. }
  2512.  
  2513. /* method: StateChanged */
  2514. void   StateChanged(Environment *ev,
  2515.         HIStateChangeCodeCreator selectorCreator,
  2516.         HIStateChangeCode changedCode)
  2517. {
  2518.    SOM_ResolveD(this,HIModalDialog,HIObject,StateChanged)
  2519.     (this,ev,selectorCreator,changedCode);
  2520. }
  2521.  
  2522. /* method: SetClipboardSupportFlags */
  2523. void   SetClipboardSupportFlags(Environment *ev,
  2524.         HIClipboardSupportFlags flags)
  2525. {
  2526.    SOM_ResolveD(this,HIModalDialog,HIObject,SetClipboardSupportFlags)
  2527.     (this,ev,flags);
  2528. }
  2529.  
  2530. /* method: Verify */
  2531. OSStatus   Verify(Environment *ev)
  2532. {
  2533.    return SOM_ResolveD(this,HIModalDialog,HIObject,Verify)
  2534.     (this,ev);
  2535. }
  2536.  
  2537. /* method: somInit */
  2538. void   somInit()
  2539. {
  2540.    SOM_ResolveD(this,HIModalDialog,SOMObject,somInit)
  2541.     (this);
  2542. }
  2543.  
  2544. /* method: somUninit */
  2545. void   somUninit()
  2546. {
  2547.    SOM_ResolveD(this,HIModalDialog,SOMObject,somUninit)
  2548.     (this);
  2549. }
  2550.  
  2551. /* method: somDuplicateReference */
  2552. SOMObject*   somDuplicateReference()
  2553. {
  2554.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somDuplicateReference)
  2555.     (this);
  2556. }
  2557.  
  2558. /* method: somCompareReference */
  2559. boolean   somCompareReference(SOMObject* anObject)
  2560. {
  2561.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somCompareReference)
  2562.     (this,anObject);
  2563. }
  2564.  
  2565. /* method: somRelease */
  2566. SOMObject*   somRelease()
  2567. {
  2568.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somRelease)
  2569.     (this);
  2570. }
  2571.  
  2572. /* method: somFree */
  2573. void   somFree()
  2574. {
  2575.    SOM_ResolveD(this,HIModalDialog,SOMObject,somFree)
  2576.     (this);
  2577. }
  2578.  
  2579. /* method: somCanDelete */
  2580. boolean   somCanDelete()
  2581. {
  2582.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somCanDelete)
  2583.     (this);
  2584. }
  2585.  
  2586. /* method: somGetClass */
  2587. SOMClass*   somGetClass()
  2588. {
  2589.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somGetClass)
  2590.     (this);
  2591. }
  2592.  
  2593. /* method: somGetClassName */
  2594. corbastring   somGetClassName()
  2595. {
  2596.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somGetClassName)
  2597.     (this);
  2598. }
  2599.  
  2600. /* method: somGetSize */
  2601. long   somGetSize()
  2602. {
  2603.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somGetSize)
  2604.     (this);
  2605. }
  2606.  
  2607. /* method: somIsA */
  2608. boolean   somIsA(SOMClass* aClassObj)
  2609. {
  2610.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somIsA)
  2611.     (this,aClassObj);
  2612. }
  2613.  
  2614. /* method: somRespondsTo */
  2615. boolean   somRespondsTo(somId mId)
  2616. {
  2617.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somRespondsTo)
  2618.     (this,mId);
  2619. }
  2620.  
  2621. /* method: somIsInstanceOf */
  2622. boolean   somIsInstanceOf(SOMClass* aClassObj)
  2623. {
  2624.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somIsInstanceOf)
  2625.     (this,aClassObj);
  2626. }
  2627.  
  2628. /* va_list method: somDispatch */
  2629. /* the va_list invocation form */
  2630. boolean   HIModalDialog_somDispatch(somToken* retValue,
  2631.         somId methodId,
  2632.         va_list ap)
  2633. {
  2634.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somDispatch)
  2635.     (this,retValue,methodId,ap);
  2636. }
  2637.  
  2638. /* the varargs invocation form */
  2639. boolean   somDispatch(somToken* retValue,
  2640.         somId methodId,
  2641.         ...)
  2642. {
  2643.    va_list ap;
  2644.    va_start(ap, methodId);
  2645.       boolean __somResult = 
  2646.       (boolean) SOM_ResolveD(this,HIModalDialog,SOMObject,somDispatch)
  2647.     (this,retValue,methodId,ap);
  2648.    va_end(ap);
  2649.    return __somResult;
  2650. }
  2651.  
  2652. /* va_list method: somClassDispatch */
  2653. /* the va_list invocation form */
  2654. boolean   HIModalDialog_somClassDispatch(SOMClass* clsObj,
  2655.         somToken* retValue,
  2656.         somId methodId,
  2657.         va_list ap)
  2658. {
  2659.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somClassDispatch)
  2660.     (this,clsObj,retValue,methodId,ap);
  2661. }
  2662.  
  2663. /* the varargs invocation form */
  2664. boolean   somClassDispatch(SOMClass* clsObj,
  2665.         somToken* retValue,
  2666.         somId methodId,
  2667.         ...)
  2668. {
  2669.    va_list ap;
  2670.    va_start(ap, methodId);
  2671.       boolean __somResult = 
  2672.       (boolean) SOM_ResolveD(this,HIModalDialog,SOMObject,somClassDispatch)
  2673.     (this,clsObj,retValue,methodId,ap);
  2674.    va_end(ap);
  2675.    return __somResult;
  2676. }
  2677.  
  2678. /* method: somCastObj */
  2679. boolean   somCastObj(SOMClass* cls)
  2680. {
  2681.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somCastObj)
  2682.     (this,cls);
  2683. }
  2684.  
  2685. /* method: somResetObj */
  2686. boolean   somResetObj()
  2687. {
  2688.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somResetObj)
  2689.     (this);
  2690. }
  2691.  
  2692. /* method: somPrintSelf */
  2693. SOMObject*   somPrintSelf()
  2694. {
  2695.    return SOM_ResolveD(this,HIModalDialog,SOMObject,somPrintSelf)
  2696.     (this);
  2697. }
  2698.  
  2699. /* method: somDumpSelf */
  2700. void   somDumpSelf(long level)
  2701. {
  2702.    SOM_ResolveD(this,HIModalDialog,SOMObject,somDumpSelf)
  2703.     (this,level);
  2704. }
  2705.  
  2706. /* method: somDumpSelfInt */
  2707. void   somDumpSelfInt(long level)
  2708. {
  2709.    SOM_ResolveD(this,HIModalDialog,SOMObject,somDumpSelfInt)
  2710.     (this,level);
  2711. }
  2712.  
  2713. };   /* HIModalDialog */
  2714.  
  2715.  
  2716.  
  2717. #endif       /* SOM_HIModalDialog_xh */
  2718.  
  2719. #ifndef SOM_HIAlert_xh
  2720. #define SOM_HIAlert_xh
  2721.  
  2722. class HIAlert;
  2723.  
  2724. #define HIAlert_MajorVersion 0
  2725. #define HIAlert_MinorVersion 0
  2726.  
  2727. /* C++ SOM defs */
  2728. #include <somcls.xh>
  2729. #include <somcm.xh>
  2730.  
  2731. /* C++ parent defs */
  2732. #ifndef SOM_HIModalDialog_xh
  2733. #include <HIDialogs.xh>
  2734. #endif
  2735.  
  2736. #ifndef HIAlert_API
  2737. #define HIAlert_API
  2738. /*
  2739.  * -- The Class API
  2740.  */
  2741.  
  2742. /*
  2743.  * Start of user-defined types:
  2744.  */
  2745.  
  2746. /*
  2747.  * End of user-defined types.
  2748.  */
  2749.  
  2750. #ifdef OLDIBMSOMAPISUPPORT
  2751. #define HIAlertCClassData HIAlertClassData
  2752. #define HIAlertNewClass(major,minor) somNewVersionedClassReference(HIAlert,major,minor)
  2753. #endif
  2754.  
  2755. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  2756. #define HIAlertMetaClass SOMClass
  2757.  
  2758. #if PRAGMA_ALIGN_SUPPORTED
  2759. #  pragma options align=power
  2760. #endif
  2761.  
  2762. /* The API to the HIAlert class object, and the methods it introduces. */
  2763. SOMEXTERN struct HIAlertClassDataStructure {
  2764. #ifdef OLDIBMSOMAPISUPPORT
  2765.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  2766. #else
  2767.     long zero;
  2768. #endif
  2769.     somStaticClassInfo *sci;
  2770.     somDToken        instanceDataToken;
  2771.     long reserved [3];
  2772.     somMToken InitAlert;
  2773. } SOMDLINK HIAlertClassData;
  2774.  
  2775. #if PRAGMA_ALIGN_SUPPORTED
  2776. #  pragma options align=reset
  2777. #endif
  2778.  
  2779. #if !defined(HIAlert_Class_Source) && !defined(SOM_Module_hidialogs_Source)
  2780. #if PRAGMA_IMPORT_SUPPORTED
  2781. #pragma import list HIAlertClassData
  2782. #endif
  2783. #endif
  2784.  
  2785.  
  2786. /*
  2787.  * -- Typedefs for HIAlert Method Procedures
  2788.  */
  2789. SOMEXTERN {
  2790. typedef OSStatus   (* SOMLINK somTD_HIAlert_InitAlert)(HIAlert *somSelf, Environment *ev,
  2791.         RefLabel* identifier,
  2792.         Rect* screenBounds,
  2793.         HIAlertType alertType);
  2794.  
  2795. /*
  2796.  * -- Typedefs for Inherited Methods
  2797.  */
  2798. typedef OSStatus   (* SOMLINK somTD_HIAlert_InitModalDialog)(HIAlert *somSelf, Environment *ev,
  2799.         RefLabel* identifier,
  2800.         Rect* screenBounds,
  2801.         boolean moveable);
  2802. typedef AEHandlerTableRef   (* SOMLINK somTD_HIAlert_GetModalAEHandlerTable)(HIAlert *somSelf, Environment *ev);
  2803. typedef void   (* SOMLINK somTD_HIAlert_ExecuteModality)(HIAlert *somSelf, Environment *ev);
  2804. typedef OSStatus   (* SOMLINK somTD_HIAlert_InitDialog)(HIAlert *somSelf, Environment *ev,
  2805.         RefLabel* identifier,
  2806.         HIWindow* window);
  2807. typedef OSStatus   (* SOMLINK somTD_HIAlert_SetDefaultPushButton)(HIAlert *somSelf, Environment *ev,
  2808.         HIPushButton* defaultSubPanel,
  2809.         boolean isDismissing);
  2810. typedef HIPushButton*   (* SOMLINK somTD_HIAlert_GetDefaultPushButton)(HIAlert *somSelf, Environment *ev);
  2811. typedef OSStatus   (* SOMLINK somTD_HIAlert_SetCancelPushButton)(HIAlert *somSelf, Environment *ev,
  2812.         HIPushButton* cancelSubPanel,
  2813.         boolean isDismissing);
  2814. typedef HIPushButton*   (* SOMLINK somTD_HIAlert_GetCancelPushButton)(HIAlert *somSelf, Environment *ev);
  2815. typedef OSStatus   (* SOMLINK somTD_HIAlert_SetDismissingSubPanel)(HIAlert *somSelf, Environment *ev,
  2816.         HIPushButton* subPanel,
  2817.         boolean isDismissing);
  2818. typedef boolean   (* SOMLINK somTD_HIAlert_IsDismissingSubPanel)(HIAlert *somSelf, Environment *ev,
  2819.         HIPushButton* subPanel);
  2820. typedef HIPanel*   (* SOMLINK somTD_HIAlert_GetNextUserInputFocussedSubPanel)(HIAlert *somSelf, Environment *ev,
  2821.         boolean goingBackwards);
  2822. typedef boolean   (* SOMLINK somTD_HIAlert_Dismiss)(HIAlert *somSelf, Environment *ev);
  2823. typedef OSStatus   (* SOMLINK somTD_HIAlert_InitRootPanel)(HIAlert *somSelf, Environment *ev,
  2824.         RefLabel* identifier,
  2825.         HIWindow* window);
  2826. typedef void   (* SOMLINK somTD_HIAlert_AdjustAccumulatedEraseRgn)(HIAlert *somSelf, Environment *ev,
  2827.         HIAccumulatorOperation accumulatorOperation,
  2828.         Rect* oldRectangle,
  2829.         Rect* newRectangle);
  2830. typedef void   (* SOMLINK somTD_HIAlert_EraseAccumulatedEraseRgn)(HIAlert *somSelf, Environment *ev,
  2831.         CGrafPtr targetPort);
  2832. typedef ItemCount   (* SOMLINK somTD_HIAlert_GetSubPanelCount)(HIAlert *somSelf, Environment *ev);
  2833. typedef HIPanel*   (* SOMLINK somTD_HIAlert_GetLastSelectedSubPanel)(HIAlert *somSelf, Environment *ev);
  2834. typedef OSStatus   (* SOMLINK somTD_HIAlert_InitEmbeddingPanel)(HIAlert *somSelf, Environment *ev,
  2835.         RefLabel* identifier,
  2836.         HIWindow* window,
  2837.         Rect* bounds);
  2838. typedef OSStatus   (* SOMLINK somTD_HIAlert_AddSubPanel)(HIAlert *somSelf, Environment *ev,
  2839.         HIPanel* subPanel,
  2840.         HISubPanelIndex where,
  2841.         HIAdoptionFlags adoptionFlags,
  2842.         HIFrameBindingFlags frameBindingFlags);
  2843. typedef OSStatus   (* SOMLINK somTD_HIAlert_RemoveSubPanel)(HIAlert *somSelf, Environment *ev,
  2844.         HIPanel* subPanel);
  2845. typedef HIPanel*   (* SOMLINK somTD_HIAlert_GetSubPanel)(HIAlert *somSelf, Environment *ev,
  2846.         HISubPanelIndex subPanelIndex);
  2847. typedef HIPanel*   (* SOMLINK somTD_HIAlert_GetUserInputFocusSubPanel)(HIAlert *somSelf, Environment *ev);
  2848. typedef OSStatus   (* SOMLINK somTD_HIAlert_SetUserInputFocusSubPanel)(HIAlert *somSelf, Environment *ev,
  2849.         HIPanel* subPanel);
  2850. typedef HISubPanelIndex   (* SOMLINK somTD_HIAlert_GetSubPanelIndex)(HIAlert *somSelf, Environment *ev,
  2851.         HIPanel* subPanel);
  2852. typedef OSStatus   (* SOMLINK somTD_HIAlert_GetSubPanelsFromRefLabel)(HIAlert *somSelf, Environment *ev,
  2853.         RefLabel* identifier,
  2854.         boolean deep,
  2855.         ItemCount requestedSubPanels,
  2856.         ItemCount* totalSubPanels,
  2857.         HIPanel** thePanels);
  2858. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIAlert_GetEmbeddingParent)(HIAlert *somSelf, Environment *ev);
  2859. typedef OSStatus   (* SOMLINK somTD_HIAlert_InitPanel)(HIAlert *somSelf, Environment *ev,
  2860.         RefLabel* identifier,
  2861.         HIWindow* window,
  2862.         Rect* bounds);
  2863. typedef OSStatus   (* SOMLINK somTD_HIAlert_RegisterInterestInAppleEvent)(HIAlert *somSelf, Environment *ev,
  2864.         AEHandlerTableRef table,
  2865.         AEEventClass eventClass,
  2866.         AEEventID eventID,
  2867.         HIEventRoutingType eventRouting);
  2868. typedef boolean   (* SOMLINK somTD_HIAlert_HasValidContent)(HIAlert *somSelf, Environment *ev);
  2869. typedef OSStatus   (* SOMLINK somTD_HIAlert_GetDeepCollectionItemData)(HIAlert *somSelf, Environment *ev,
  2870.         CollectionTag tag,
  2871.         SInt32 id,
  2872.         ByteCount sizeAllowed,
  2873.         ByteCount* sizeReturned,
  2874.         void* itemData);
  2875. typedef HIWindow*   (* SOMLINK somTD_HIAlert_GetWindow)(HIAlert *somSelf, Environment *ev);
  2876. typedef CGrafPtr   (* SOMLINK somTD_HIAlert_GetPort)(HIAlert *somSelf, Environment *ev);
  2877. typedef void   (* SOMLINK somTD_HIAlert_GetRefLabel)(HIAlert *somSelf, Environment *ev,
  2878.         RefLabel* identifier);
  2879. typedef Collection   (* SOMLINK somTD_HIAlert_GetCollection)(HIAlert *somSelf, Environment *ev);
  2880. typedef OSStatus   (* SOMLINK somTD_HIAlert_Init)(HIAlert *somSelf, Environment *ev,
  2881.         RefLabel* identifier,
  2882.         Rect* boundingRect);
  2883. typedef void   (* SOMLINK somTD_HIAlert_Terminate)(HIAlert *somSelf, Environment *ev);
  2884. typedef HIObject*   (* SOMLINK somTD_HIAlert_Clone)(HIAlert *somSelf, Environment *ev);
  2885. typedef void   (* SOMLINK somTD_HIAlert_Release)(HIAlert *somSelf, Environment *ev);
  2886. typedef ItemCount   (* SOMLINK somTD_HIAlert_GetOwnerCount)(HIAlert *somSelf, Environment *ev);
  2887. typedef OSStatus   (* SOMLINK somTD_HIAlert_InitFromAERecord)(HIAlert *somSelf, Environment *ev,
  2888.         AESubDesc* baseInitializerData,
  2889.         AESubDesc* initializerDataForClass,
  2890.         HIAERecordDataFormat dataFormat);
  2891. typedef OSStatus   (* SOMLINK somTD_HIAlert_WriteToAERecord)(HIAlert *somSelf, Environment *ev,
  2892.         AERecord* dataForSubclass,
  2893.         AERecord* objectData,
  2894.         HIAERecordDataFormat dataFormat);
  2895. typedef void   (* SOMLINK somTD_HIAlert_CalculateOptimalSize)(HIAlert *somSelf, Environment *ev,
  2896.         SInt16* optimalWidth,
  2897.         SInt16* optimalHeight);
  2898. typedef void   (* SOMLINK somTD_HIAlert_GetBoundingRect)(HIAlert *somSelf, Environment *ev,
  2899.         HICoordinateSystem coordinate,
  2900.         Rect* boundingRect);
  2901. typedef void   (* SOMLINK somTD_HIAlert_SetBoundingRect)(HIAlert *somSelf, Environment *ev,
  2902.         HICoordinateSystem coordinate,
  2903.         Rect* newBoundingRect);
  2904. typedef void   (* SOMLINK somTD_HIAlert_SetPosition)(HIAlert *somSelf, Environment *ev,
  2905.         HICoordinateSystem coordinate,
  2906.         Point* newPosition);
  2907. typedef void   (* SOMLINK somTD_HIAlert_SetSize)(HIAlert *somSelf, Environment *ev,
  2908.         SInt16 width,
  2909.         SInt16 height);
  2910. typedef void   (* SOMLINK somTD_HIAlert_GetUpdateRect)(HIAlert *somSelf, Environment *ev,
  2911.         HICoordinateSystem coordinate,
  2912.         Rect* updateRect);
  2913. typedef void   (* SOMLINK somTD_HIAlert_Enable)(HIAlert *somSelf, Environment *ev);
  2914. typedef void   (* SOMLINK somTD_HIAlert_Disable)(HIAlert *somSelf, Environment *ev);
  2915. typedef boolean   (* SOMLINK somTD_HIAlert_IsEnabled)(HIAlert *somSelf, Environment *ev);
  2916. typedef void   (* SOMLINK somTD_HIAlert_Show)(HIAlert *somSelf, Environment *ev);
  2917. typedef void   (* SOMLINK somTD_HIAlert_Hide)(HIAlert *somSelf, Environment *ev);
  2918. typedef boolean   (* SOMLINK somTD_HIAlert_IsVisible)(HIAlert *somSelf, Environment *ev);
  2919. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleAppleEvent)(HIAlert *somSelf, Environment *ev,
  2920.         AEEventClass eventClass,
  2921.         AEEventID eventID,
  2922.         AppleEvent* theEvent,
  2923.         AppleEvent* reply,
  2924.         AEHandlerTableRef handlerTableRef);
  2925. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleActivate)(HIAlert *somSelf, Environment *ev,
  2926.         AppleEvent* theEvent,
  2927.         AppleEvent* reply,
  2928.         AEHandlerTableRef handlerTableRef);
  2929. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleDeactivate)(HIAlert *somSelf, Environment *ev,
  2930.         AppleEvent* theEvent,
  2931.         AppleEvent* reply,
  2932.         AEHandlerTableRef handlerTableRef);
  2933. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleNavigation)(HIAlert *somSelf, Environment *ev,
  2934.         SInt8 key,
  2935.         SInt8 keyCode,
  2936.         EventModifiers modifiers,
  2937.         AppleEvent* theEvent,
  2938.         AppleEvent* reply,
  2939.         AEHandlerTableRef handlerTableRef);
  2940. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleMouseDownInContent)(HIAlert *somSelf, Environment *ev,
  2941.         Point* portLocalWhere,
  2942.         EventModifiers modifiers,
  2943.         AppleEvent* theEvent,
  2944.         AppleEvent* reply,
  2945.         AEHandlerTableRef handlerTableRef);
  2946. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleMouseMovedInContent)(HIAlert *somSelf, Environment *ev,
  2947.         Point* portLocalWhere,
  2948.         EventModifiers modifiers,
  2949.         AppleEvent* theEvent,
  2950.         AppleEvent* reply,
  2951.         AEHandlerTableRef handlerTableRef);
  2952. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleMouseStoppedMovingInContent)(HIAlert *somSelf, Environment *ev,
  2953.         Point* portLocalWhere,
  2954.         EventModifiers modifiers,
  2955.         AppleEvent* theEvent,
  2956.         AppleEvent* reply,
  2957.         AEHandlerTableRef handlerTableRef);
  2958. typedef OSStatus   (* SOMLINK somTD_HIAlert_HandleMouseUpInContent)(HIAlert *somSelf, Environment *ev,
  2959.         Point* portLocalWhere,
  2960.         EventModifiers modifiers,
  2961.         AppleEvent* theEvent,
  2962.         AppleEvent* reply,
  2963.         AEHandlerTableRef handlerTableRef);
  2964. typedef void   (* SOMLINK somTD_HIAlert_TakeUserInputFocus)(HIAlert *somSelf, Environment *ev);
  2965. typedef void   (* SOMLINK somTD_HIAlert_ReleaseUserInputFocus)(HIAlert *somSelf, Environment *ev);
  2966. typedef boolean   (* SOMLINK somTD_HIAlert_HasUserInputFocus)(HIAlert *somSelf, Environment *ev);
  2967. typedef boolean   (* SOMLINK somTD_HIAlert_CanReleaseUserInputFocus)(HIAlert *somSelf, Environment *ev);
  2968. typedef void   (* SOMLINK somTD_HIAlert_SetUserInputFocusFlags)(HIAlert *somSelf, Environment *ev,
  2969.         HIUserInputFocusFlags flags);
  2970. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIAlert_GetUserInputFocusFlags)(HIAlert *somSelf, Environment *ev);
  2971. typedef OSStatus   (* SOMLINK somTD_HIAlert_SetTitle)(HIAlert *somSelf, Environment *ev,
  2972.         ConstHIImageRef title,
  2973.         HIAdoptionFlags disposalAdoptionFlags);
  2974. typedef OSStatus   (* SOMLINK somTD_HIAlert_GetTitle)(HIAlert *somSelf, Environment *ev,
  2975.         HIImageRef* title);
  2976. typedef void   (* SOMLINK somTD_HIAlert_Draw)(HIAlert *somSelf, Environment *ev,
  2977.         CGrafPtr whichPort,
  2978.         RgnHandle drawRgn);
  2979. typedef void   (* SOMLINK somTD_HIAlert_Erase)(HIAlert *somSelf, Environment *ev,
  2980.         CGrafPtr whichPort,
  2981.         RgnHandle eraseRgn);
  2982. typedef void   (* SOMLINK somTD_HIAlert_Invalidate)(HIAlert *somSelf, Environment *ev);
  2983. typedef HIDrawingMode   (* SOMLINK somTD_HIAlert_GetDrawingMode)(HIAlert *somSelf, Environment *ev);
  2984. typedef void   (* SOMLINK somTD_HIAlert_SetDrawingMode)(HIAlert *somSelf, Environment *ev,
  2985.         HIDrawingMode drawingMode);
  2986. typedef void   (* SOMLINK somTD_HIAlert_SetBackgroundPattern)(HIAlert *somSelf, Environment *ev,
  2987.         PixPatHandle backgroundPattern);
  2988. typedef PixPatHandle   (* SOMLINK somTD_HIAlert_GetBackgroundPattern)(HIAlert *somSelf, Environment *ev);
  2989. typedef void   (* SOMLINK somTD_HIAlert_Cut)(HIAlert *somSelf, Environment *ev);
  2990. typedef void   (* SOMLINK somTD_HIAlert_Copy)(HIAlert *somSelf, Environment *ev);
  2991. typedef void   (* SOMLINK somTD_HIAlert_Paste)(HIAlert *somSelf, Environment *ev);
  2992. typedef void   (* SOMLINK somTD_HIAlert_Clear)(HIAlert *somSelf, Environment *ev);
  2993. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIAlert_GetClipboardSupportFlags)(HIAlert *somSelf, Environment *ev);
  2994. typedef OSStatus   (* SOMLINK somTD_HIAlert_AddStateChangeCallback)(HIAlert *somSelf, Environment *ev,
  2995.         HIStateChangeCallbackProcPtr changedStateCallback,
  2996.         HIStateChangeCallbackRef* newCallbackRef);
  2997. typedef OSStatus   (* SOMLINK somTD_HIAlert_RemoveStateChangeCallback)(HIAlert *somSelf, Environment *ev,
  2998.         HIStateChangeCallbackRef callbackRefToRemove);
  2999. typedef OSStatus   (* SOMLINK somTD_HIAlert_GetHIObjectFromRefLabel)(Environment *ev,
  3000.         RefLabel* identifier,
  3001.         ItemCount requestedObjects,
  3002.         ItemCount* totalObjects,
  3003.         HIObject** theObjects);
  3004. typedef OSStatus   (* SOMLINK somTD_HIAlert_GetNewHIObject)(Environment *ev,
  3005.         AESubDesc* objectInitializer,
  3006.         HIObject** newObject);
  3007. typedef OSStatus   (* SOMLINK somTD_HIAlert_GetNewHIObjectFromResource)(Environment *ev,
  3008.         ResID objectInitializerResourceID,
  3009.         HIObject** newObject);
  3010. typedef void   (* SOMLINK somTD_HIAlert_DrawContent)(HIAlert *somSelf, Environment *ev,
  3011.         CGrafPtr whichPort,
  3012.         RgnHandle drawRgn);
  3013. typedef void   (* SOMLINK somTD_HIAlert_EraseContent)(HIAlert *somSelf, Environment *ev,
  3014.         CGrafPtr whichPort,
  3015.         RgnHandle regionToErase);
  3016. typedef void   (* SOMLINK somTD_HIAlert_TranslatePoint)(HIAlert *somSelf, Environment *ev,
  3017.         HICoordinateSystem translateFrom,
  3018.         HICoordinateSystem translateTo,
  3019.         Point* sourcePoint,
  3020.         Point* translatedPoint);
  3021. typedef void   (* SOMLINK somTD_HIAlert_TranslateRect)(HIAlert *somSelf, Environment *ev,
  3022.         HICoordinateSystem translateFrom,
  3023.         HICoordinateSystem translateTo,
  3024.         Rect* sourceRect,
  3025.         Rect* translatedRect);
  3026. typedef void   (* SOMLINK somTD_HIAlert_StateChanged)(HIAlert *somSelf, Environment *ev,
  3027.         HIStateChangeCodeCreator selectorCreator,
  3028.         HIStateChangeCode changedCode);
  3029. typedef void   (* SOMLINK somTD_HIAlert_SetClipboardSupportFlags)(HIAlert *somSelf, Environment *ev,
  3030.         HIClipboardSupportFlags flags);
  3031. typedef OSStatus   (* SOMLINK somTD_HIAlert_Verify)(HIAlert *somSelf, Environment *ev);
  3032. typedef void   (* SOMLINK somTD_HIAlert_somInit)(HIAlert *somSelf);
  3033. typedef void   (* SOMLINK somTD_HIAlert_somUninit)(HIAlert *somSelf);
  3034. typedef SOMObject*   (* SOMLINK somTD_HIAlert_somDuplicateReference)(HIAlert *somSelf);
  3035. typedef boolean   (* SOMLINK somTD_HIAlert_somCompareReference)(HIAlert *somSelf,
  3036.         SOMObject* anObject);
  3037. typedef SOMObject*   (* SOMLINK somTD_HIAlert_somRelease)(HIAlert *somSelf);
  3038. typedef void   (* SOMLINK somTD_HIAlert_somFree)(HIAlert *somSelf);
  3039. typedef boolean   (* SOMLINK somTD_HIAlert_somCanDelete)(HIAlert *somSelf);
  3040. typedef SOMClass*   (* SOMLINK somTD_HIAlert_somGetClass)(HIAlert *somSelf);
  3041. typedef corbastring   (* SOMLINK somTD_HIAlert_somGetClassName)(HIAlert *somSelf);
  3042. typedef long   (* SOMLINK somTD_HIAlert_somGetSize)(HIAlert *somSelf);
  3043. typedef boolean   (* SOMLINK somTD_HIAlert_somIsA)(HIAlert *somSelf,
  3044.         SOMClass* aClassObj);
  3045. typedef boolean   (* SOMLINK somTD_HIAlert_somRespondsTo)(HIAlert *somSelf,
  3046.         somId mId);
  3047. typedef boolean   (* SOMLINK somTD_HIAlert_somIsInstanceOf)(HIAlert *somSelf,
  3048.         SOMClass* aClassObj);
  3049. typedef boolean   (* SOMLINK somTD_HIAlert_somDispatch)(HIAlert *somSelf,
  3050.         somToken* retValue,
  3051.         somId methodId,
  3052.         va_list ap);
  3053. typedef boolean   (* SOMLINK somTD_HIAlert_somClassDispatch)(HIAlert *somSelf,
  3054.         SOMClass* clsObj,
  3055.         somToken* retValue,
  3056.         somId methodId,
  3057.         va_list ap);
  3058. typedef boolean   (* SOMLINK somTD_HIAlert_somCastObj)(HIAlert *somSelf,
  3059.         SOMClass* cls);
  3060. typedef boolean   (* SOMLINK somTD_HIAlert_somResetObj)(HIAlert *somSelf);
  3061. typedef SOMObject*   (* SOMLINK somTD_HIAlert_somPrintSelf)(HIAlert *somSelf);
  3062. typedef void   (* SOMLINK somTD_HIAlert_somDumpSelf)(HIAlert *somSelf,
  3063.         long level);
  3064. typedef void   (* SOMLINK somTD_HIAlert_somDumpSelfInt)(HIAlert *somSelf,
  3065.         long level);
  3066. }
  3067.  
  3068. #endif /* HIAlert_API */
  3069.  
  3070.  
  3071. /*
  3072.  * -- This emitter treats Method Tokens as Thunks by default.
  3073.  * -- Use the sc modifier "nothunks" to change this default
  3074.  */
  3075. #undef somresolve_
  3076. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  3077.  
  3078. /*
  3079.  * -- The C++ Wrapper Class for HIAlert
  3080.  */
  3081. class HIAlert : public HIModalDialog
  3082. {
  3083. public:
  3084.  
  3085. // HIAlert::new registers use of the class object, and then uses somNew
  3086. // to allocate memory and load the object method table pointer. 
  3087. void *operator new(size_t size)
  3088. {
  3089.     SOM_IgnoreWarning(size);
  3090.     // Allocate memory using the default allocator for HIAlert, and
  3091.     // clear mem & set method table pointer, call basic initialization
  3092.     return (void*) somNewObject(HIAlert);
  3093. }
  3094.  
  3095. // HIAlert::delete uses the default deallocator for the object's class.
  3096. void operator delete(void * obj)
  3097. {
  3098.     if (obj) {
  3099.         SOM_Resolve(obj,SOMObject,somFree)
  3100.            ( (SOMObject*) obj );
  3101.     }
  3102. }
  3103.  
  3104. /* method: InitAlert */
  3105. OSStatus   InitAlert(Environment *ev,
  3106.         RefLabel* identifier,
  3107.         Rect* screenBounds,
  3108.         HIAlertType alertType)
  3109. {
  3110.    return SOM_ResolveD(this,HIAlert,HIAlert,InitAlert)
  3111.     (this,ev,identifier,screenBounds,alertType);
  3112. }
  3113.  
  3114.  
  3115. /*
  3116.  * -- Inherited methods
  3117.  */
  3118. /* method: InitModalDialog */
  3119. OSStatus   InitModalDialog(Environment *ev,
  3120.         RefLabel* identifier,
  3121.         Rect* screenBounds,
  3122.         boolean moveable)
  3123. {
  3124.    return SOM_ResolveD(this,HIAlert,HIModalDialog,InitModalDialog)
  3125.     (this,ev,identifier,screenBounds,moveable);
  3126. }
  3127.  
  3128. /* method: GetModalAEHandlerTable */
  3129. AEHandlerTableRef   GetModalAEHandlerTable(Environment *ev)
  3130. {
  3131.    return SOM_ResolveD(this,HIAlert,HIModalDialog,GetModalAEHandlerTable)
  3132.     (this,ev);
  3133. }
  3134.  
  3135. /* method: ExecuteModality */
  3136. void   ExecuteModality(Environment *ev)
  3137. {
  3138.    SOM_ResolveD(this,HIAlert,HIModalDialog,ExecuteModality)
  3139.     (this,ev);
  3140. }
  3141.  
  3142. /* method: InitDialog */
  3143. OSStatus   InitDialog(Environment *ev,
  3144.         RefLabel* identifier,
  3145.         HIWindow* window)
  3146. {
  3147.    return SOM_ResolveD(this,HIAlert,HIDialog,InitDialog)
  3148.     (this,ev,identifier,window);
  3149. }
  3150.  
  3151. /* method: SetDefaultPushButton */
  3152. OSStatus   SetDefaultPushButton(Environment *ev,
  3153.         HIPushButton* defaultSubPanel,
  3154.         boolean isDismissing)
  3155. {
  3156.    return SOM_ResolveD(this,HIAlert,HIDialog,SetDefaultPushButton)
  3157.     (this,ev,defaultSubPanel,isDismissing);
  3158. }
  3159.  
  3160. /* method: GetDefaultPushButton */
  3161. HIPushButton*   GetDefaultPushButton(Environment *ev)
  3162. {
  3163.    return SOM_ResolveD(this,HIAlert,HIDialog,GetDefaultPushButton)
  3164.     (this,ev);
  3165. }
  3166.  
  3167. /* method: SetCancelPushButton */
  3168. OSStatus   SetCancelPushButton(Environment *ev,
  3169.         HIPushButton* cancelSubPanel,
  3170.         boolean isDismissing)
  3171. {
  3172.    return SOM_ResolveD(this,HIAlert,HIDialog,SetCancelPushButton)
  3173.     (this,ev,cancelSubPanel,isDismissing);
  3174. }
  3175.  
  3176. /* method: GetCancelPushButton */
  3177. HIPushButton*   GetCancelPushButton(Environment *ev)
  3178. {
  3179.    return SOM_ResolveD(this,HIAlert,HIDialog,GetCancelPushButton)
  3180.     (this,ev);
  3181. }
  3182.  
  3183. /* method: SetDismissingSubPanel */
  3184. OSStatus   SetDismissingSubPanel(Environment *ev,
  3185.         HIPushButton* subPanel,
  3186.         boolean isDismissing)
  3187. {
  3188.    return SOM_ResolveD(this,HIAlert,HIDialog,SetDismissingSubPanel)
  3189.     (this,ev,subPanel,isDismissing);
  3190. }
  3191.  
  3192. /* method: IsDismissingSubPanel */
  3193. boolean   IsDismissingSubPanel(Environment *ev,
  3194.         HIPushButton* subPanel)
  3195. {
  3196.    return SOM_ResolveD(this,HIAlert,HIDialog,IsDismissingSubPanel)
  3197.     (this,ev,subPanel);
  3198. }
  3199.  
  3200. /* method: GetNextUserInputFocussedSubPanel */
  3201. HIPanel*   GetNextUserInputFocussedSubPanel(Environment *ev,
  3202.         boolean goingBackwards)
  3203. {
  3204.    return SOM_ResolveD(this,HIAlert,HIDialog,GetNextUserInputFocussedSubPanel)
  3205.     (this,ev,goingBackwards);
  3206. }
  3207.  
  3208. /* method: Dismiss */
  3209. boolean   Dismiss(Environment *ev)
  3210. {
  3211.    return SOM_ResolveD(this,HIAlert,HIDialog,Dismiss)
  3212.     (this,ev);
  3213. }
  3214.  
  3215. /* method: InitRootPanel */
  3216. OSStatus   InitRootPanel(Environment *ev,
  3217.         RefLabel* identifier,
  3218.         HIWindow* window)
  3219. {
  3220.    return SOM_ResolveD(this,HIAlert,HIRootPanel,InitRootPanel)
  3221.     (this,ev,identifier,window);
  3222. }
  3223.  
  3224. /* method: AdjustAccumulatedEraseRgn */
  3225. void   AdjustAccumulatedEraseRgn(Environment *ev,
  3226.         HIAccumulatorOperation accumulatorOperation,
  3227.         Rect* oldRectangle,
  3228.         Rect* newRectangle)
  3229. {
  3230.    SOM_ResolveD(this,HIAlert,HIRootPanel,AdjustAccumulatedEraseRgn)
  3231.     (this,ev,accumulatorOperation,oldRectangle,newRectangle);
  3232. }
  3233.  
  3234. /* method: EraseAccumulatedEraseRgn */
  3235. void   EraseAccumulatedEraseRgn(Environment *ev,
  3236.         CGrafPtr targetPort)
  3237. {
  3238.    SOM_ResolveD(this,HIAlert,HIRootPanel,EraseAccumulatedEraseRgn)
  3239.     (this,ev,targetPort);
  3240. }
  3241.  
  3242. /* method: GetSubPanelCount */
  3243. ItemCount   GetSubPanelCount(Environment *ev)
  3244. {
  3245.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,GetSubPanelCount)
  3246.     (this,ev);
  3247. }
  3248.  
  3249. /* method: GetLastSelectedSubPanel */
  3250. HIPanel*   GetLastSelectedSubPanel(Environment *ev)
  3251. {
  3252.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,GetLastSelectedSubPanel)
  3253.     (this,ev);
  3254. }
  3255.  
  3256. /* method: InitEmbeddingPanel */
  3257. OSStatus   InitEmbeddingPanel(Environment *ev,
  3258.         RefLabel* identifier,
  3259.         HIWindow* window,
  3260.         Rect* bounds)
  3261. {
  3262.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,InitEmbeddingPanel)
  3263.     (this,ev,identifier,window,bounds);
  3264. }
  3265.  
  3266. /* method: AddSubPanel */
  3267. OSStatus   AddSubPanel(Environment *ev,
  3268.         HIPanel* subPanel,
  3269.         HISubPanelIndex where,
  3270.         HIAdoptionFlags adoptionFlags,
  3271.         HIFrameBindingFlags frameBindingFlags)
  3272. {
  3273.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,AddSubPanel)
  3274.     (this,ev,subPanel,where,adoptionFlags,frameBindingFlags);
  3275. }
  3276.  
  3277. /* method: RemoveSubPanel */
  3278. OSStatus   RemoveSubPanel(Environment *ev,
  3279.         HIPanel* subPanel)
  3280. {
  3281.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,RemoveSubPanel)
  3282.     (this,ev,subPanel);
  3283. }
  3284.  
  3285. /* method: GetSubPanel */
  3286. HIPanel*   GetSubPanel(Environment *ev,
  3287.         HISubPanelIndex subPanelIndex)
  3288. {
  3289.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,GetSubPanel)
  3290.     (this,ev,subPanelIndex);
  3291. }
  3292.  
  3293. /* method: GetUserInputFocusSubPanel */
  3294. HIPanel*   GetUserInputFocusSubPanel(Environment *ev)
  3295. {
  3296.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,GetUserInputFocusSubPanel)
  3297.     (this,ev);
  3298. }
  3299.  
  3300. /* method: SetUserInputFocusSubPanel */
  3301. OSStatus   SetUserInputFocusSubPanel(Environment *ev,
  3302.         HIPanel* subPanel)
  3303. {
  3304.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,SetUserInputFocusSubPanel)
  3305.     (this,ev,subPanel);
  3306. }
  3307.  
  3308. /* method: GetSubPanelIndex */
  3309. HISubPanelIndex   GetSubPanelIndex(Environment *ev,
  3310.         HIPanel* subPanel)
  3311. {
  3312.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,GetSubPanelIndex)
  3313.     (this,ev,subPanel);
  3314. }
  3315.  
  3316. /* method: GetSubPanelsFromRefLabel */
  3317. OSStatus   GetSubPanelsFromRefLabel(Environment *ev,
  3318.         RefLabel* identifier,
  3319.         boolean deep,
  3320.         ItemCount requestedSubPanels,
  3321.         ItemCount* totalSubPanels,
  3322.         HIPanel** thePanels)
  3323. {
  3324.    return SOM_ResolveD(this,HIAlert,HIEmbeddingPanel,GetSubPanelsFromRefLabel)
  3325.     (this,ev,identifier,deep,requestedSubPanels,totalSubPanels,thePanels);
  3326. }
  3327.  
  3328. /* method: GetEmbeddingParent */
  3329. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  3330. {
  3331.    return SOM_ResolveD(this,HIAlert,HIPanel,GetEmbeddingParent)
  3332.     (this,ev);
  3333. }
  3334.  
  3335. /* method: InitPanel */
  3336. OSStatus   InitPanel(Environment *ev,
  3337.         RefLabel* identifier,
  3338.         HIWindow* window,
  3339.         Rect* bounds)
  3340. {
  3341.    return SOM_ResolveD(this,HIAlert,HIPanel,InitPanel)
  3342.     (this,ev,identifier,window,bounds);
  3343. }
  3344.  
  3345. /* method: RegisterInterestInAppleEvent */
  3346. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  3347.         AEHandlerTableRef table,
  3348.         AEEventClass eventClass,
  3349.         AEEventID eventID,
  3350.         HIEventRoutingType eventRouting)
  3351. {
  3352.    return SOM_ResolveD(this,HIAlert,HIPanel,RegisterInterestInAppleEvent)
  3353.     (this,ev,table,eventClass,eventID,eventRouting);
  3354. }
  3355.  
  3356. /* method: HasValidContent */
  3357. boolean   HasValidContent(Environment *ev)
  3358. {
  3359.    return SOM_ResolveD(this,HIAlert,HIPanel,HasValidContent)
  3360.     (this,ev);
  3361. }
  3362.  
  3363. /* method: GetDeepCollectionItemData */
  3364. OSStatus   GetDeepCollectionItemData(Environment *ev,
  3365.         CollectionTag tag,
  3366.         SInt32 id,
  3367.         ByteCount sizeAllowed,
  3368.         ByteCount* sizeReturned,
  3369.         void* itemData)
  3370. {
  3371.    return SOM_ResolveD(this,HIAlert,HIPanel,GetDeepCollectionItemData)
  3372.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  3373. }
  3374.  
  3375. /* method: GetWindow */
  3376. HIWindow*   GetWindow(Environment *ev)
  3377. {
  3378.    return SOM_ResolveD(this,HIAlert,HIObject,GetWindow)
  3379.     (this,ev);
  3380. }
  3381.  
  3382. /* method: GetPort */
  3383. CGrafPtr   GetPort(Environment *ev)
  3384. {
  3385.    return SOM_ResolveD(this,HIAlert,HIObject,GetPort)
  3386.     (this,ev);
  3387. }
  3388.  
  3389. /* method: GetRefLabel */
  3390. void   GetRefLabel(Environment *ev,
  3391.         RefLabel* identifier)
  3392. {
  3393.    SOM_ResolveD(this,HIAlert,HIObject,GetRefLabel)
  3394.     (this,ev,identifier);
  3395. }
  3396.  
  3397. /* method: GetCollection */
  3398. Collection   GetCollection(Environment *ev)
  3399. {
  3400.    return SOM_ResolveD(this,HIAlert,HIObject,GetCollection)
  3401.     (this,ev);
  3402. }
  3403.  
  3404. /* method: Init */
  3405. OSStatus   Init(Environment *ev,
  3406.         RefLabel* identifier,
  3407.         Rect* boundingRect)
  3408. {
  3409.    return SOM_ResolveD(this,HIAlert,HIObject,Init)
  3410.     (this,ev,identifier,boundingRect);
  3411. }
  3412.  
  3413. /* method: Terminate */
  3414. void   Terminate(Environment *ev)
  3415. {
  3416.    SOM_ResolveD(this,HIAlert,HIObject,Terminate)
  3417.     (this,ev);
  3418. }
  3419.  
  3420. /* method: Clone */
  3421. HIObject*   Clone(Environment *ev)
  3422. {
  3423.    return SOM_ResolveD(this,HIAlert,HIObject,Clone)
  3424.     (this,ev);
  3425. }
  3426.  
  3427. /* method: Release */
  3428. void   Release(Environment *ev)
  3429. {
  3430.    SOM_ResolveD(this,HIAlert,HIObject,Release)
  3431.     (this,ev);
  3432. }
  3433.  
  3434. /* method: GetOwnerCount */
  3435. ItemCount   GetOwnerCount(Environment *ev)
  3436. {
  3437.    return SOM_ResolveD(this,HIAlert,HIObject,GetOwnerCount)
  3438.     (this,ev);
  3439. }
  3440.  
  3441. /* method: InitFromAERecord */
  3442. OSStatus   InitFromAERecord(Environment *ev,
  3443.         AESubDesc* baseInitializerData,
  3444.         AESubDesc* initializerDataForClass,
  3445.         HIAERecordDataFormat dataFormat)
  3446. {
  3447.    return SOM_ResolveD(this,HIAlert,HIObject,InitFromAERecord)
  3448.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  3449. }
  3450.  
  3451. /* method: WriteToAERecord */
  3452. OSStatus   WriteToAERecord(Environment *ev,
  3453.         AERecord* dataForSubclass,
  3454.         AERecord* objectData,
  3455.         HIAERecordDataFormat dataFormat)
  3456. {
  3457.    return SOM_ResolveD(this,HIAlert,HIObject,WriteToAERecord)
  3458.     (this,ev,dataForSubclass,objectData,dataFormat);
  3459. }
  3460.  
  3461. /* method: CalculateOptimalSize */
  3462. void   CalculateOptimalSize(Environment *ev,
  3463.         SInt16* optimalWidth,
  3464.         SInt16* optimalHeight)
  3465. {
  3466.    SOM_ResolveD(this,HIAlert,HIObject,CalculateOptimalSize)
  3467.     (this,ev,optimalWidth,optimalHeight);
  3468. }
  3469.  
  3470. /* method: GetBoundingRect */
  3471. void   GetBoundingRect(Environment *ev,
  3472.         HICoordinateSystem coordinate,
  3473.         Rect* boundingRect)
  3474. {
  3475.    SOM_ResolveD(this,HIAlert,HIObject,GetBoundingRect)
  3476.     (this,ev,coordinate,boundingRect);
  3477. }
  3478.  
  3479. /* method: SetBoundingRect */
  3480. void   SetBoundingRect(Environment *ev,
  3481.         HICoordinateSystem coordinate,
  3482.         Rect* newBoundingRect)
  3483. {
  3484.    SOM_ResolveD(this,HIAlert,HIObject,SetBoundingRect)
  3485.     (this,ev,coordinate,newBoundingRect);
  3486. }
  3487.  
  3488. /* method: SetPosition */
  3489. void   SetPosition(Environment *ev,
  3490.         HICoordinateSystem coordinate,
  3491.         Point* newPosition)
  3492. {
  3493.    SOM_ResolveD(this,HIAlert,HIObject,SetPosition)
  3494.     (this,ev,coordinate,newPosition);
  3495. }
  3496.  
  3497. /* method: SetSize */
  3498. void   SetSize(Environment *ev,
  3499.         SInt16 width,
  3500.         SInt16 height)
  3501. {
  3502.    SOM_ResolveD(this,HIAlert,HIObject,SetSize)
  3503.     (this,ev,width,height);
  3504. }
  3505.  
  3506. /* method: GetUpdateRect */
  3507. void   GetUpdateRect(Environment *ev,
  3508.         HICoordinateSystem coordinate,
  3509.         Rect* updateRect)
  3510. {
  3511.    SOM_ResolveD(this,HIAlert,HIObject,GetUpdateRect)
  3512.     (this,ev,coordinate,updateRect);
  3513. }
  3514.  
  3515. /* method: Enable */
  3516. void   Enable(Environment *ev)
  3517. {
  3518.    SOM_ResolveD(this,HIAlert,HIObject,Enable)
  3519.     (this,ev);
  3520. }
  3521.  
  3522. /* method: Disable */
  3523. void   Disable(Environment *ev)
  3524. {
  3525.    SOM_ResolveD(this,HIAlert,HIObject,Disable)
  3526.     (this,ev);
  3527. }
  3528.  
  3529. /* method: IsEnabled */
  3530. boolean   IsEnabled(Environment *ev)
  3531. {
  3532.    return SOM_ResolveD(this,HIAlert,HIObject,IsEnabled)
  3533.     (this,ev);
  3534. }
  3535.  
  3536. /* method: Show */
  3537. void   Show(Environment *ev)
  3538. {
  3539.    SOM_ResolveD(this,HIAlert,HIObject,Show)
  3540.     (this,ev);
  3541. }
  3542.  
  3543. /* method: Hide */
  3544. void   Hide(Environment *ev)
  3545. {
  3546.    SOM_ResolveD(this,HIAlert,HIObject,Hide)
  3547.     (this,ev);
  3548. }
  3549.  
  3550. /* method: IsVisible */
  3551. boolean   IsVisible(Environment *ev)
  3552. {
  3553.    return SOM_ResolveD(this,HIAlert,HIObject,IsVisible)
  3554.     (this,ev);
  3555. }
  3556.  
  3557. /* method: HandleAppleEvent */
  3558. OSStatus   HandleAppleEvent(Environment *ev,
  3559.         AEEventClass eventClass,
  3560.         AEEventID eventID,
  3561.         AppleEvent* theEvent,
  3562.         AppleEvent* reply,
  3563.         AEHandlerTableRef handlerTableRef)
  3564. {
  3565.    return SOM_ResolveD(this,HIAlert,HIObject,HandleAppleEvent)
  3566.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  3567. }
  3568.  
  3569. /* method: HandleActivate */
  3570. OSStatus   HandleActivate(Environment *ev,
  3571.         AppleEvent* theEvent,
  3572.         AppleEvent* reply,
  3573.         AEHandlerTableRef handlerTableRef)
  3574. {
  3575.    return SOM_ResolveD(this,HIAlert,HIObject,HandleActivate)
  3576.     (this,ev,theEvent,reply,handlerTableRef);
  3577. }
  3578.  
  3579. /* method: HandleDeactivate */
  3580. OSStatus   HandleDeactivate(Environment *ev,
  3581.         AppleEvent* theEvent,
  3582.         AppleEvent* reply,
  3583.         AEHandlerTableRef handlerTableRef)
  3584. {
  3585.    return SOM_ResolveD(this,HIAlert,HIObject,HandleDeactivate)
  3586.     (this,ev,theEvent,reply,handlerTableRef);
  3587. }
  3588.  
  3589. /* method: HandleNavigation */
  3590. OSStatus   HandleNavigation(Environment *ev,
  3591.         SInt8 key,
  3592.         SInt8 keyCode,
  3593.         EventModifiers modifiers,
  3594.         AppleEvent* theEvent,
  3595.         AppleEvent* reply,
  3596.         AEHandlerTableRef handlerTableRef)
  3597. {
  3598.    return SOM_ResolveD(this,HIAlert,HIObject,HandleNavigation)
  3599.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  3600. }
  3601.  
  3602. /* method: HandleMouseDownInContent */
  3603. OSStatus   HandleMouseDownInContent(Environment *ev,
  3604.         Point* portLocalWhere,
  3605.         EventModifiers modifiers,
  3606.         AppleEvent* theEvent,
  3607.         AppleEvent* reply,
  3608.         AEHandlerTableRef handlerTableRef)
  3609. {
  3610.    return SOM_ResolveD(this,HIAlert,HIObject,HandleMouseDownInContent)
  3611.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3612. }
  3613.  
  3614. /* method: HandleMouseMovedInContent */
  3615. OSStatus   HandleMouseMovedInContent(Environment *ev,
  3616.         Point* portLocalWhere,
  3617.         EventModifiers modifiers,
  3618.         AppleEvent* theEvent,
  3619.         AppleEvent* reply,
  3620.         AEHandlerTableRef handlerTableRef)
  3621. {
  3622.    return SOM_ResolveD(this,HIAlert,HIObject,HandleMouseMovedInContent)
  3623.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3624. }
  3625.  
  3626. /* method: HandleMouseStoppedMovingInContent */
  3627. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  3628.         Point* portLocalWhere,
  3629.         EventModifiers modifiers,
  3630.         AppleEvent* theEvent,
  3631.         AppleEvent* reply,
  3632.         AEHandlerTableRef handlerTableRef)
  3633. {
  3634.    return SOM_ResolveD(this,HIAlert,HIObject,HandleMouseStoppedMovingInContent)
  3635.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3636. }
  3637.  
  3638. /* method: HandleMouseUpInContent */
  3639. OSStatus   HandleMouseUpInContent(Environment *ev,
  3640.         Point* portLocalWhere,
  3641.         EventModifiers modifiers,
  3642.         AppleEvent* theEvent,
  3643.         AppleEvent* reply,
  3644.         AEHandlerTableRef handlerTableRef)
  3645. {
  3646.    return SOM_ResolveD(this,HIAlert,HIObject,HandleMouseUpInContent)
  3647.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3648. }
  3649.  
  3650. /* method: TakeUserInputFocus */
  3651. void   TakeUserInputFocus(Environment *ev)
  3652. {
  3653.    SOM_ResolveD(this,HIAlert,HIObject,TakeUserInputFocus)
  3654.     (this,ev);
  3655. }
  3656.  
  3657. /* method: ReleaseUserInputFocus */
  3658. void   ReleaseUserInputFocus(Environment *ev)
  3659. {
  3660.    SOM_ResolveD(this,HIAlert,HIObject,ReleaseUserInputFocus)
  3661.     (this,ev);
  3662. }
  3663.  
  3664. /* method: HasUserInputFocus */
  3665. boolean   HasUserInputFocus(Environment *ev)
  3666. {
  3667.    return SOM_ResolveD(this,HIAlert,HIObject,HasUserInputFocus)
  3668.     (this,ev);
  3669. }
  3670.  
  3671. /* method: CanReleaseUserInputFocus */
  3672. boolean   CanReleaseUserInputFocus(Environment *ev)
  3673. {
  3674.    return SOM_ResolveD(this,HIAlert,HIObject,CanReleaseUserInputFocus)
  3675.     (this,ev);
  3676. }
  3677.  
  3678. /* method: SetUserInputFocusFlags */
  3679. void   SetUserInputFocusFlags(Environment *ev,
  3680.         HIUserInputFocusFlags flags)
  3681. {
  3682.    SOM_ResolveD(this,HIAlert,HIObject,SetUserInputFocusFlags)
  3683.     (this,ev,flags);
  3684. }
  3685.  
  3686. /* method: GetUserInputFocusFlags */
  3687. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  3688. {
  3689.    return SOM_ResolveD(this,HIAlert,HIObject,GetUserInputFocusFlags)
  3690.     (this,ev);
  3691. }
  3692.  
  3693. /* method: SetTitle */
  3694. OSStatus   SetTitle(Environment *ev,
  3695.         ConstHIImageRef title,
  3696.         HIAdoptionFlags disposalAdoptionFlags)
  3697. {
  3698.    return SOM_ResolveD(this,HIAlert,HIObject,SetTitle)
  3699.     (this,ev,title,disposalAdoptionFlags);
  3700. }
  3701.  
  3702. /* method: GetTitle */
  3703. OSStatus   GetTitle(Environment *ev,
  3704.         HIImageRef* title)
  3705. {
  3706.    return SOM_ResolveD(this,HIAlert,HIObject,GetTitle)
  3707.     (this,ev,title);
  3708. }
  3709.  
  3710. /* method: Draw */
  3711. void   Draw(Environment *ev,
  3712.         CGrafPtr whichPort,
  3713.         RgnHandle drawRgn)
  3714. {
  3715.    SOM_ResolveD(this,HIAlert,HIObject,Draw)
  3716.     (this,ev,whichPort,drawRgn);
  3717. }
  3718.  
  3719. /* method: Erase */
  3720. void   Erase(Environment *ev,
  3721.         CGrafPtr whichPort,
  3722.         RgnHandle eraseRgn)
  3723. {
  3724.    SOM_ResolveD(this,HIAlert,HIObject,Erase)
  3725.     (this,ev,whichPort,eraseRgn);
  3726. }
  3727.  
  3728. /* method: Invalidate */
  3729. void   Invalidate(Environment *ev)
  3730. {
  3731.    SOM_ResolveD(this,HIAlert,HIObject,Invalidate)
  3732.     (this,ev);
  3733. }
  3734.  
  3735. /* method: GetDrawingMode */
  3736. HIDrawingMode   GetDrawingMode(Environment *ev)
  3737. {
  3738.    return SOM_ResolveD(this,HIAlert,HIObject,GetDrawingMode)
  3739.     (this,ev);
  3740. }
  3741.  
  3742. /* method: SetDrawingMode */
  3743. void   SetDrawingMode(Environment *ev,
  3744.         HIDrawingMode drawingMode)
  3745. {
  3746.    SOM_ResolveD(this,HIAlert,HIObject,SetDrawingMode)
  3747.     (this,ev,drawingMode);
  3748. }
  3749.  
  3750. /* method: SetBackgroundPattern */
  3751. void   SetBackgroundPattern(Environment *ev,
  3752.         PixPatHandle backgroundPattern)
  3753. {
  3754.    SOM_ResolveD(this,HIAlert,HIObject,SetBackgroundPattern)
  3755.     (this,ev,backgroundPattern);
  3756. }
  3757.  
  3758. /* method: GetBackgroundPattern */
  3759. PixPatHandle   GetBackgroundPattern(Environment *ev)
  3760. {
  3761.    return SOM_ResolveD(this,HIAlert,HIObject,GetBackgroundPattern)
  3762.     (this,ev);
  3763. }
  3764.  
  3765. /* method: Cut */
  3766. void   Cut(Environment *ev)
  3767. {
  3768.    SOM_ResolveD(this,HIAlert,HIObject,Cut)
  3769.     (this,ev);
  3770. }
  3771.  
  3772. /* method: Copy */
  3773. void   Copy(Environment *ev)
  3774. {
  3775.    SOM_ResolveD(this,HIAlert,HIObject,Copy)
  3776.     (this,ev);
  3777. }
  3778.  
  3779. /* method: Paste */
  3780. void   Paste(Environment *ev)
  3781. {
  3782.    SOM_ResolveD(this,HIAlert,HIObject,Paste)
  3783.     (this,ev);
  3784. }
  3785.  
  3786. /* method: Clear */
  3787. void   Clear(Environment *ev)
  3788. {
  3789.    SOM_ResolveD(this,HIAlert,HIObject,Clear)
  3790.     (this,ev);
  3791. }
  3792.  
  3793. /* method: GetClipboardSupportFlags */
  3794. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  3795. {
  3796.    return SOM_ResolveD(this,HIAlert,HIObject,GetClipboardSupportFlags)
  3797.     (this,ev);
  3798. }
  3799.  
  3800. /* method: AddStateChangeCallback */
  3801. OSStatus   AddStateChangeCallback(Environment *ev,
  3802.         HIStateChangeCallbackProcPtr changedStateCallback,
  3803.         HIStateChangeCallbackRef* newCallbackRef)
  3804. {
  3805.    return SOM_ResolveD(this,HIAlert,HIObject,AddStateChangeCallback)
  3806.     (this,ev,changedStateCallback,newCallbackRef);
  3807. }
  3808.  
  3809. /* method: RemoveStateChangeCallback */
  3810. OSStatus   RemoveStateChangeCallback(Environment *ev,
  3811.         HIStateChangeCallbackRef callbackRefToRemove)
  3812. {
  3813.    return SOM_ResolveD(this,HIAlert,HIObject,RemoveStateChangeCallback)
  3814.     (this,ev,callbackRefToRemove);
  3815. }
  3816.  
  3817. /* noself procedure: GetHIObjectFromRefLabel */
  3818. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  3819.         RefLabel* identifier,
  3820.         ItemCount requestedObjects,
  3821.         ItemCount* totalObjects,
  3822.         HIObject** theObjects)
  3823. {
  3824. return ((somTD_HIAlert_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  3825.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  3826. }
  3827.  
  3828. /* noself procedure: GetNewHIObject */
  3829. static OSStatus   GetNewHIObject(Environment *ev,
  3830.         AESubDesc* objectInitializer,
  3831.         HIObject** newObject)
  3832. {
  3833. return ((somTD_HIAlert_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  3834.     (ev,objectInitializer,newObject);
  3835. }
  3836.  
  3837. /* noself procedure: GetNewHIObjectFromResource */
  3838. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  3839.         ResID objectInitializerResourceID,
  3840.         HIObject** newObject)
  3841. {
  3842. return ((somTD_HIAlert_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  3843.     (ev,objectInitializerResourceID,newObject);
  3844. }
  3845.  
  3846. /* method: DrawContent */
  3847. void   DrawContent(Environment *ev,
  3848.         CGrafPtr whichPort,
  3849.         RgnHandle drawRgn)
  3850. {
  3851.    SOM_ResolveD(this,HIAlert,HIObject,DrawContent)
  3852.     (this,ev,whichPort,drawRgn);
  3853. }
  3854.  
  3855. /* method: EraseContent */
  3856. void   EraseContent(Environment *ev,
  3857.         CGrafPtr whichPort,
  3858.         RgnHandle regionToErase)
  3859. {
  3860.    SOM_ResolveD(this,HIAlert,HIObject,EraseContent)
  3861.     (this,ev,whichPort,regionToErase);
  3862. }
  3863.  
  3864. /* method: TranslatePoint */
  3865. void   TranslatePoint(Environment *ev,
  3866.         HICoordinateSystem translateFrom,
  3867.         HICoordinateSystem translateTo,
  3868.         Point* sourcePoint,
  3869.         Point* translatedPoint)
  3870. {
  3871.    SOM_ResolveD(this,HIAlert,HIObject,TranslatePoint)
  3872.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  3873. }
  3874.  
  3875. /* method: TranslateRect */
  3876. void   TranslateRect(Environment *ev,
  3877.         HICoordinateSystem translateFrom,
  3878.         HICoordinateSystem translateTo,
  3879.         Rect* sourceRect,
  3880.         Rect* translatedRect)
  3881. {
  3882.    SOM_ResolveD(this,HIAlert,HIObject,TranslateRect)
  3883.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  3884. }
  3885.  
  3886. /* method: StateChanged */
  3887. void   StateChanged(Environment *ev,
  3888.         HIStateChangeCodeCreator selectorCreator,
  3889.         HIStateChangeCode changedCode)
  3890. {
  3891.    SOM_ResolveD(this,HIAlert,HIObject,StateChanged)
  3892.     (this,ev,selectorCreator,changedCode);
  3893. }
  3894.  
  3895. /* method: SetClipboardSupportFlags */
  3896. void   SetClipboardSupportFlags(Environment *ev,
  3897.         HIClipboardSupportFlags flags)
  3898. {
  3899.    SOM_ResolveD(this,HIAlert,HIObject,SetClipboardSupportFlags)
  3900.     (this,ev,flags);
  3901. }
  3902.  
  3903. /* method: Verify */
  3904. OSStatus   Verify(Environment *ev)
  3905. {
  3906.    return SOM_ResolveD(this,HIAlert,HIObject,Verify)
  3907.     (this,ev);
  3908. }
  3909.  
  3910. /* method: somInit */
  3911. void   somInit()
  3912. {
  3913.    SOM_ResolveD(this,HIAlert,SOMObject,somInit)
  3914.     (this);
  3915. }
  3916.  
  3917. /* method: somUninit */
  3918. void   somUninit()
  3919. {
  3920.    SOM_ResolveD(this,HIAlert,SOMObject,somUninit)
  3921.     (this);
  3922. }
  3923.  
  3924. /* method: somDuplicateReference */
  3925. SOMObject*   somDuplicateReference()
  3926. {
  3927.    return SOM_ResolveD(this,HIAlert,SOMObject,somDuplicateReference)
  3928.     (this);
  3929. }
  3930.  
  3931. /* method: somCompareReference */
  3932. boolean   somCompareReference(SOMObject* anObject)
  3933. {
  3934.    return SOM_ResolveD(this,HIAlert,SOMObject,somCompareReference)
  3935.     (this,anObject);
  3936. }
  3937.  
  3938. /* method: somRelease */
  3939. SOMObject*   somRelease()
  3940. {
  3941.    return SOM_ResolveD(this,HIAlert,SOMObject,somRelease)
  3942.     (this);
  3943. }
  3944.  
  3945. /* method: somFree */
  3946. void   somFree()
  3947. {
  3948.    SOM_ResolveD(this,HIAlert,SOMObject,somFree)
  3949.     (this);
  3950. }
  3951.  
  3952. /* method: somCanDelete */
  3953. boolean   somCanDelete()
  3954. {
  3955.    return SOM_ResolveD(this,HIAlert,SOMObject,somCanDelete)
  3956.     (this);
  3957. }
  3958.  
  3959. /* method: somGetClass */
  3960. SOMClass*   somGetClass()
  3961. {
  3962.    return SOM_ResolveD(this,HIAlert,SOMObject,somGetClass)
  3963.     (this);
  3964. }
  3965.  
  3966. /* method: somGetClassName */
  3967. corbastring   somGetClassName()
  3968. {
  3969.    return SOM_ResolveD(this,HIAlert,SOMObject,somGetClassName)
  3970.     (this);
  3971. }
  3972.  
  3973. /* method: somGetSize */
  3974. long   somGetSize()
  3975. {
  3976.    return SOM_ResolveD(this,HIAlert,SOMObject,somGetSize)
  3977.     (this);
  3978. }
  3979.  
  3980. /* method: somIsA */
  3981. boolean   somIsA(SOMClass* aClassObj)
  3982. {
  3983.    return SOM_ResolveD(this,HIAlert,SOMObject,somIsA)
  3984.     (this,aClassObj);
  3985. }
  3986.  
  3987. /* method: somRespondsTo */
  3988. boolean   somRespondsTo(somId mId)
  3989. {
  3990.    return SOM_ResolveD(this,HIAlert,SOMObject,somRespondsTo)
  3991.     (this,mId);
  3992. }
  3993.  
  3994. /* method: somIsInstanceOf */
  3995. boolean   somIsInstanceOf(SOMClass* aClassObj)
  3996. {
  3997.    return SOM_ResolveD(this,HIAlert,SOMObject,somIsInstanceOf)
  3998.     (this,aClassObj);
  3999. }
  4000.  
  4001. /* va_list method: somDispatch */
  4002. /* the va_list invocation form */
  4003. boolean   HIAlert_somDispatch(somToken* retValue,
  4004.         somId methodId,
  4005.         va_list ap)
  4006. {
  4007.    return SOM_ResolveD(this,HIAlert,SOMObject,somDispatch)
  4008.     (this,retValue,methodId,ap);
  4009. }
  4010.  
  4011. /* the varargs invocation form */
  4012. boolean   somDispatch(somToken* retValue,
  4013.         somId methodId,
  4014.         ...)
  4015. {
  4016.    va_list ap;
  4017.    va_start(ap, methodId);
  4018.       boolean __somResult = 
  4019.       (boolean) SOM_ResolveD(this,HIAlert,SOMObject,somDispatch)
  4020.     (this,retValue,methodId,ap);
  4021.    va_end(ap);
  4022.    return __somResult;
  4023. }
  4024.  
  4025. /* va_list method: somClassDispatch */
  4026. /* the va_list invocation form */
  4027. boolean   HIAlert_somClassDispatch(SOMClass* clsObj,
  4028.         somToken* retValue,
  4029.         somId methodId,
  4030.         va_list ap)
  4031. {
  4032.    return SOM_ResolveD(this,HIAlert,SOMObject,somClassDispatch)
  4033.     (this,clsObj,retValue,methodId,ap);
  4034. }
  4035.  
  4036. /* the varargs invocation form */
  4037. boolean   somClassDispatch(SOMClass* clsObj,
  4038.         somToken* retValue,
  4039.         somId methodId,
  4040.         ...)
  4041. {
  4042.    va_list ap;
  4043.    va_start(ap, methodId);
  4044.       boolean __somResult = 
  4045.       (boolean) SOM_ResolveD(this,HIAlert,SOMObject,somClassDispatch)
  4046.     (this,clsObj,retValue,methodId,ap);
  4047.    va_end(ap);
  4048.    return __somResult;
  4049. }
  4050.  
  4051. /* method: somCastObj */
  4052. boolean   somCastObj(SOMClass* cls)
  4053. {
  4054.    return SOM_ResolveD(this,HIAlert,SOMObject,somCastObj)
  4055.     (this,cls);
  4056. }
  4057.  
  4058. /* method: somResetObj */
  4059. boolean   somResetObj()
  4060. {
  4061.    return SOM_ResolveD(this,HIAlert,SOMObject,somResetObj)
  4062.     (this);
  4063. }
  4064.  
  4065. /* method: somPrintSelf */
  4066. SOMObject*   somPrintSelf()
  4067. {
  4068.    return SOM_ResolveD(this,HIAlert,SOMObject,somPrintSelf)
  4069.     (this);
  4070. }
  4071.  
  4072. /* method: somDumpSelf */
  4073. void   somDumpSelf(long level)
  4074. {
  4075.    SOM_ResolveD(this,HIAlert,SOMObject,somDumpSelf)
  4076.     (this,level);
  4077. }
  4078.  
  4079. /* method: somDumpSelfInt */
  4080. void   somDumpSelfInt(long level)
  4081. {
  4082.    SOM_ResolveD(this,HIAlert,SOMObject,somDumpSelfInt)
  4083.     (this,level);
  4084. }
  4085.  
  4086. };   /* HIAlert */
  4087.  
  4088.  
  4089.  
  4090. #endif       /* SOM_HIAlert_xh */
  4091.